Questions tagged [cms-block]

Denotes questions related to CMS blocks.

78 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
180 views

Magento 2.3.0 TinyMCE removes anchor tag href suffix when used with {{store url=''}}

I am trying to add category link in the CMS block. <ul class="list-unstyled"> <li><a href="{{store url=''}}test-collection.html">Test Collection</a></li> </ul> ...
3
votes
4answers
303 views

Magento 2.2.5 page and block module not displaying grid and button

I just installed Magento 2.2.5 but in admin > content > page the page grid and the button are not displaying. Even in the block the same issue happens, records grid and button is not displaying. ...
3
votes
0answers
473 views

Magneto2 remove widget via xml in custom page

In all cms pages i use widget. How can i remove widget by id on specific CMS pages? For remove block i use: <referenceBlock name="block_name" remove="true"/>
3
votes
1answer
640 views

Programmatically create static block and add it to selected store views

I need to create static blocks programmatically. How to assign a block to selected store views? I've found tutorials about creating static blocks, but they all add the block to all store views, like ...
3
votes
0answers
30 views

Custom Attribute listing

Hello I have created one custom attribute "Brand" with select box and add lots of brand for product. Now I want to display brand value with alphabets order in cms page.
2
votes
3answers
104 views

WYSIWYG editor inserting &quot; instead of correct " in 2.3.0 when we use any anchor tags

I am facing an issue with Magento 2.3.0+ WYSIWYG editor inserting " instead of correct " and also when we write like <a href="{{store_url}}sales/guest/form/">Orders and Returns</a> ...
2
votes
1answer
52 views

Remove banner.data block by layout file

I need to remove the block from layout file using below code, <referenceBlock name="banner.data" remove="true" /> Because there is no way to disable Magento banners in admin, however, this can ...
2
votes
0answers
93 views

How to get website/store id in the cms blocks/pages Magento2

I'm checking this for long time but couldn't get this.I would like to display the website id through the magento cms block/pages.Without calling it from phtml's. Thanks in Advance.
2
votes
0answers
93 views

How to get store currency in cms blocks in magento2

I have a CMS block which will be used in multi-currency stores. I have a content,lets say "Grab it for USD 100".Now I want this to change based on store currency selected.How can i achieve this on ...
2
votes
1answer
522 views

Magento 2 : How To Add Cms Block on Home Page After Megamenu

I need to create a link from cms block to the home page to render the contents in storefront.
2
votes
1answer
44 views

How to Refresh image shown in home page by static CMS with same name and location

I have a CMS block that shows three images, top.jpg, mid.jpg, and bottom.jpg. The CMS block contains: ..and so forth.. My idea was to keep the same names so someone in charge of the ...
2
votes
1answer
166 views

Currency not changing in magento cms page

I am using a custom theme for my Magento Store. On home page, I am using 2 carousal( For Products ) one from CMS block and one from Static block. I have 2 currencies one is INR and second one is USD. ...
2
votes
0answers
153 views

Homepage block doesn't hold to column count

I copied my list.phtml template to make a featured items block on my homepage. However all items in the category are displayed and not the column count that I set in my placement. {{block type="...
2
votes
1answer
717 views

How to call cms block of block type into custom header

I've made code of most viewed products which I'm trying to call under custom header. This is what I've done so far. Posted the block code under cms block by name 'most_viewed'. {{block type="...
2
votes
0answers
567 views

Widgets + Static Block issue

I am struggling with an issue since yesterday, i really need some help from someone who is more experienced with magento. I have a problem with the Widgets/static blocks. Whenever i create a static ...
1
vote
1answer
40 views

Set different static cms block to each different product

I have a created different CMS static blocks. I need to call the respective static block for each product. I thought of getting the URL key and then assign it to the respective Products. How could I ...
1
vote
0answers
161 views

Magento 2 : Create cms block store vise with same identifier

I want to create CMS block with same identifier. For ex. Testing is my identifier. But, content of testing is different in German store view and Russia store view. How to create store vise CMS block ...
1
vote
0answers
19 views

Backend listing grid view page not opening order listing cms page & block listing etc

Backend listing grid view page not opening order listing cms page & block listing etc.. Admin panel not able to load multiselect.html, text.html, html.html, actions.html and js file as per console ...
1
vote
0answers
17 views

cms pages and block is not loading in backend

CMS pages and blocks won't load in the backend. It keeps loading and loading without not showing any pages or blocks. I reindex, compile, clear cache... But nothing changed. Any help would be much ...
1
vote
0answers
76 views

Insert image in Magento CMS error

When we try to insert the image in cms page or cms block the popup not showing any images which we have uploaded as well as no button for upload image. Please check below image:
1
vote
1answer
280 views

Magento 2 show captcha at contact us form block section

I use below code to show cms block in cms page {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}}
1
vote
4answers
2k views

File validation failed. Upload Images magento 2

Getting an error File validation failed. when trying to upload JPG format images from cms block in Magento 2.3 version. File Path : vendor/magento/module-cms/etc/di.xml <argument name="...
1
vote
1answer
254 views

sql query in cms_block table in magento 2

I have to write insert query for Magento 2 cms_block table, for ex:- cms_block table, what should i write for the column created_in , updated_in , creation_time , update_time row_id block_id ...
1
vote
0answers
248 views

How to add minicart in cms block magento 2

I tried adding this shortcode to my cms block {{block class="Magento\Checkout\Block\Cart\Sidebar" template="Magento_Checkout::cart/minicart.phtml"}} but it doesn't show the minicart dropdown when ...
1
vote
2answers
290 views

Unautorized Url added in all cms block Magento 1.9

All cms blocks inserted an unauthorized link with js call as below https://kinfirighbetted.host/d/domain.com.js
1
vote
1answer
154 views

Magento how to change action url of contact page

I add contact form in CMS page using this code - <form class="form contact" action="<?= $block->escapeUrl($block->getFormAction()) ?>" id="contact-form" method="post" data-...
1
vote
1answer
152 views

Cannot create static Cms block from backend

Whenever I try to create a new static block from the backend, I always get the notice "Could not save block, sorry something went wrong". Checking logs I found this exception of the violation of ...
1
vote
0answers
226 views

Magento 2: Xml layout update on block embedded in CMS page

How can I use the Layout Update XML to modify a block that's been embedded in a CMS page. I'm embedding the Magento login block into a CMS page, which works fine, but it does not show the 'Remember Me'...
1
vote
1answer
676 views

Move cms static block before Breadcrumbs in Magento 2.2 category page

I want to move cms static block before breadcrumbs. My static block name ves_element_top.
1
vote
0answers
30 views

What is the difference between adding CMS Static Block into CMS Page Content & Design?

What is the difference between adding CMS Static Block into CMS Page -> Content and CMS Page -> Design?
1
vote
0answers
248 views

Magento2 - How get all prices of all Blocks within HomePage?

I have working a website with others extensions between them the "Ultimo - Fluid Responsive" theme that overwrite much part of website, as well as my own extension. My question friends: I how can ...
1
vote
0answers
128 views

Sidebar next to CMS block on category page

I'm somewhat new to Magento 2 but most of it is going just fine. There is a minor issue I'm experiencing and I can't seem to figure out how I can fix this. I've added a CMS block to a category ...
1
vote
1answer
2k views

How to add a CMS Block via XML layout update in Magento 2?

In order to create custom sidebar menus for my CMS pages in Magento 1, I used to be able to create a static block, and then use a widget to place it on all CMS pages that had a 2 column layout with ...
1
vote
1answer
81 views

How to HyperLink block_name on any block or Product Slider Name Title

When using the code below, it shows feature product slider on any CMS page with the title that is a value of the block_name attribute. It's shown as a plain text, but I want to make it a hyperlink. ...
1
vote
1answer
184 views

Magebuzz manufacturers extension on a static block

I'm tring to display the manufacturer list in a Static Block on Magento 1.9.3.2 But cannot understand how to do this: {{block type="Magebuzz/Manufacturer" name="manufacturer" template="Product/...
1
vote
2answers
785 views

Magento : How To Add an Attribute to Static Block

How to add attribute to static block. I am not looking for code, but also where put code. Assume attribute is named test and static block name sttest. I have search on this, but always get lost on ...
1
vote
1answer
84 views

Magento Extension Page Layout

I've installed a news extension but I don't succed to customize layout. For all other pages, I've the category and inside I call the cms static block to uniform all the layout.. Now instead with this ...
1
vote
1answer
566 views

Mulitple store: Same CMS and static pages but loads different content for different stores

Multiple stores (version 1.9): I can add category description individually for each store and it will display individually for specific stores. Requirement: I want same functionality for CMS and ...
0
votes
1answer
13 views

magento 2.2.3 how to add a new cms block or new phtml to product page

I want to add a new cms block or PHTML to the product page. I have the following files composer.json, etc/module.xml, and registration.php I have view/frontend/layout/catalog_product_view.xml &...
0
votes
0answers
42 views

Magento 2 - Custom Variable | How to get the Plain Value as well as HTML value using directive {{CustomVar code=“CUSTOM_VAR_CODE”}} in CMS Blocks?

I have added the Custom Variable from Admin > System > Other settings > Custom Variables > Add New Variable, it is possible to add both the Variable HTML Value as well as Variable Plain Value as in ...
0
votes
0answers
83 views

Magento2 : How to call CMS page link in PWA

I have Created one CMS page and Added in Static block like below code : <ul> <li><a href="about">About</a></li> </ul> Called static block in venia-concept/src/...
0
votes
0answers
18 views

Content Loss When Saving a Magento 2.3 CMS Block

First I saved my code After saving, he disappeared
0
votes
1answer
22 views

Cannot open blocks, pages via Magento 2 admin

I have installed Magento 2.3 on xampp. I have tried to check the CMS pages, blocks via admin panel but its not opening instead it says the error Attention, Something went wrong How can I fix this ...
0
votes
1answer
29 views

How to display custom cms block on cms homepage when Full page caching is enabled

pleas help me with my problem. I try to display cms block on cms homepage via widget. It works only when i have full page caching disabled. Is there a way to display this block with FPC enabled? Any ...
0
votes
2answers
44 views

Add arguments in CMS Block

The project is using the Bluefoot plugin to add the block in cms_index_home. I created a static block in Magento Admin with the follow content: {{block class="ProductsRegulars\Block\Recommendation\...
0
votes
1answer
33 views

CMS statsic blocks doesn't show for Ar store language - Magento 2?

i have a multi language Magento2 Store and i have CMS static blocks in home page , so to translate these blocks i had to duplicate each block and change store view to En or Ar for each block to show ...
0
votes
0answers
25 views

Update CMS block via migration script

How can I change the footer logo via migration script? PNG file is located in wysiwig/logo.png under pub folder. It is called out in cms block in the admin panel. I could add my logo to that ...
0
votes
0answers
80 views

Defer images in CMS blocks Magento 1.9.3

I am trying to speed up my page to get the best result on google but it is showing defer images. I have deferred the images on the pages but lazy loading is not working for any of the images in the ...
0
votes
0answers
233 views

Magento 2 CMS Block: Is it possible to use another directive within translate directive?

For example I have a CMS block with a text I want to translate but I have a link inside this text that uses the {{store url=""}} directive. In my cms block: {{trans "Foo <a href="{{store url=""}}"...
0
votes
0answers
258 views

Magento 2.3 how to add cms static block in footer on last page of product listing

I would like to display a static Block at the footer on last page of category view page. Using Magento 2.3. Tried with productlist.php but not working as expected. Using below references. How do I ...