Questions tagged [cms-block]
Denotes questions related to CMS blocks.
290 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
27
views
Static block in template broken (NOT using PageBuilder rendering)
I have a very basic custom module showing a compact catalog/product list for logged in customers.
The content of category descriptions etc. is being rendered correctly.
But at the top of my template I ...
0
votes
5
answers
92
views
Magento Website Malware
I have Magento website and it have some kind of the malware that did SQL Injection, and also on each reload of my page it add scripts to my DB under cms_block content of each record, also on website ...
2
votes
2
answers
562
views
Unwanted JavaScript Code Injected into Magento 2 CMS Static Block
I am facing an issue where unwanted JavaScript code is being injected into my Magento 2 CMS static blocks. Every time I manually remove this obfuscated JavaScript code from a static block, it ...
0
votes
1
answer
38
views
How do I add a cms block for a particular category above the pagination toolbar and below the products grid?
How do I add a cms block for a particular category above the pagination toolbar and below the products grid?
<referenceBlock name="product_list_toolbar">
<block class="...
0
votes
1
answer
27
views
Submitting a form on a CMS page that is loading a template file is returning a 404 error on the post request
I think I am running into a routing issue where my post request is not reaching my controller.
Test/Example/view/frontend/templates/swatches.phtml
<form action="<? echo $block->getUrl('...
0
votes
0
answers
76
views
Magento 2.4 CMS Blocks dont show up on category pages
i cant get the cms block to show up on categories pages. the same cms block works fine on the homepage. the category page is set to display static block and product added the cms block. i do have a ...
1
vote
2
answers
429
views
Load widgets in specific position on category list page - Magento2.4
We would like to create widgets with layout updates and load these widgets in a specific place on the category list page.
So we would like to create a widget from admin, load a CMS static block and ...
0
votes
1
answer
252
views
magento 2.4 add cms block to minicart
I'm using widgets to insert static blocks on different places in my magento website. It works everywhere except the minicart. When I create a widget with the layout minicart promotion block, what I ...
2
votes
1
answer
130
views
how to display cms block from position on product page?
i already created cms block with image advertising
how to display cms block on product page in the lower part above the footer?
only use admin panel
0
votes
1
answer
70
views
Call phtml using block code
login to magento admin. Open any cms page and write block code in content section.
{{block class="Magento\Framework\View\Element\Template" name="test_file" template="...
1
vote
1
answer
343
views
Magento 2: performance issue with Magento\Framework\View\TemplateEngine\Php::render
I have enabled the new relic log to check the performance of the Magento 2 website.
On home page I am rendering 5 blocks with 5 template files. In new relic logs, it shows homepage takes time to ...
0
votes
1
answer
73
views
On CMS block render by identifier, it brings wrong localization
I'm trying to render a CMS Block, to pass rendered HTML to jsLayout, on updater
I have two CMS blocks, with same name, but for different store fronts (based on store front, the language is different).
...
0
votes
2
answers
1k
views
Display product attributes in cms block or page builder
I need to be able to reference product attributes inside a cms block or page builder, I am not wanting to create any template files I am wanting to call it like you can call a variable.
So here is one ...
0
votes
1
answer
279
views
i want to add accordion inside the cms block, but it is not taking
i want to add accordion inside the cms block, but it is not taking
this is the code i want to add
<div id="accordion" data-mage-init='{
"accordion":{
"activate": 2,
&...
0
votes
2
answers
1k
views
Magento 2 Passing parameters to Content Blocks
I'm new to Magento
I want to create a block in the admin panel (Content > Elements > Blocks) which contains HTML code, CSS style, and some dynamic parameters under its content box.
Example: <...