Questions tagged [cms-block]

Denotes questions related to CMS blocks.

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

Magento 2 How to create Hero image module to CMS page [duplicate]

I have created the hero image module for the CMS page. But the image is not uploaded and there is issue to save the image too. Is there any solution for that? please suggest.
0
votes
1answer
70 views

Magento 2.3: Using HTML in a Static Block

Can I use HTML content in a Static Box? If so, please provide the code that I can use in the Block Content to identify the code as HTML. I am trying to use a Widget to insert HTML content into the ...
0
votes
1answer
19 views

Using a Page vs. a Static Block

I'm trying to get a very basic understanding of when I should use a Page vs. Static Block to create content for the site. Can someone provide examples of where they might be used? Or scenarios where ...
0
votes
0answers
28 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
52 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
16 views

Content Loss When Saving a Magento 2.3 CMS Block

First I saved my code After saving, he disappeared
0
votes
1answer
18 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
51 views

Magento 2 : Face Error while create a custom block

I got the below error when create the Custom Block for the HTML sitemap. Error filtering template: Warning: Declaration of Vapor\Sitemap\Block\Sitemap\Category::_getHtml(Magento\Framework\Data\...
2
votes
2answers
80 views

Get content of CMS Block in Magento 1.x

i want get content in CMS Block, i tryed this code but it not show content My code : <?php foreach ($this->getAgreements() as $_a): ?> <?php echo $_a->getContent() ?> <?...
0
votes
1answer
62 views

Magento 2 include template with form in CMS Block

I have been struggling trying to put a template functionally working inside a CMS Block. When I put this code inside my CMS block the template is correctly implemented {{block class="Experius\...
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 ...
2
votes
1answer
54 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
42 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 ...
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\...
2
votes
1answer
307 views

Saving cms blocks after 2.3.1 upgrade now display the html on frontend

After the 2.3.1 upgrade, which included/enabled Page Builder, a custom section we have that loads block content and displays it now escapes the html tags so it outputs all of the html visible on the ...
0
votes
1answer
43 views

Add css to a block Magento 1

In Magento 2, there is a box to place custom CSS to any block. However, I don't see that as an option in Magento 1 How do I add custom CSS to a block in Magento 1? Edit for possible dupe: I want ...
1
vote
1answer
28 views

how to move the custom block middle of the page in Magento 2

I added custom block in home page Magento 2, but it's showing in the top of the page I want to move to after banners how can I achieve this? cms_index_index.xml <?xml version="1.0"?> &...
0
votes
1answer
27 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
23 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 ...
1
vote
0answers
128 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 ...
3
votes
1answer
168 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> ...
1
vote
0answers
18 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 ...
0
votes
0answers
72 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
201 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=""}}"...
1
vote
2answers
139 views

How to change footer and header for a CMS page only using layout XML?

I want to change out the footer and header for a minimized version but only on a certain CMS Page. Is it possible to do this with the layout XML input field to remove the header/footer and add static ...
1
vote
3answers
387 views

Add CMS block to bottom of each product list

I would like to add a CMS block to the bottom of each product list whehter it is on a category page or the search result page. Since I would like to add it on every list I'll try to do this via layout ...
0
votes
0answers
237 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 ...
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:
0
votes
0answers
85 views

Magento2 - Get store url for specific store in static cms block

I have multistore website in Magento2 Now how to get the above store-specific urls in static block by using the {{store url=""}} Right Now the above url fetches the current store url but i want ...
0
votes
0answers
49 views

Magento1 Security patch `SUPEE-10975` Not able to upload images using Media store in static block

While trying to upload images using Media store in static block getting logout from admin. I am trying to upload image from cms block. see attached screenshot. I am getting logout on controller ...
1
vote
1answer
248 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"}}
6
votes
2answers
226 views

store_url does not render link correctly

I am using this link in my static CMS block <a href="{{store_url='produkte/insektenschutz/fenster/spannrahmen.html'}}"> but it renders as https://www.mysite.de/produkte/insektenschutz/fenster/ ...
1
vote
3answers
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="...
0
votes
0answers
35 views

Custom action won't work?

My Customized controller seems not work. Added new method which suppose to update some values in table, here is my method: public function reorderAction() { Mage::log('=> test',true,'...
0
votes
1answer
128 views

Magento 1.9 sort collection by one of the fields value

Whetever I do it still gives me the same results. Querying cms_block ids: $collection = Mage::getModel( 'cms/block' ) ->getCollection() // can't add addAttributeToSelect(whatever ...
0
votes
0answers
55 views

Magento 1.9 CMS block custom field is not saving values

I already checked all similar posts but still don't know why it won't work for me. Manually added columns into the table "cms_block", also added all required fields in to the form.php and now in admin ...
0
votes
0answers
20 views

Is it a simple way to set conditions for widget of type CMS static block?

I want a CMS static block to appear in some product pages, but not all. The condition would be "brand is xxx", but unlike other widget types there is no condition option on Widget Settings. Is there ...
0
votes
0answers
12 views

Content not appearing after adding two text content types

I've gone through the Magento admin control panel to Content > Content Types > Select Section (For us it is called "0-Home") > Manage Fields and added two text fields, not required, no max ...
0
votes
0answers
13 views

Custom checks after save or preview in content manager

The goal is simple enough, but I'm a total Magento noob and don't know how to accomplish this. We have a specific two column content block that has an image on the left hand column and text on the ...
1
vote
1answer
232 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 ...
0
votes
0answers
224 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 ...
0
votes
1answer
159 views

Add a CMS Block to the main column for a Category in Magento 2

I want my cms block in the column.main area of a category page in Magento 2. This is a 2 column left page. I want my left menu to still show up on the left and my cms to show up in the main area to ...
0
votes
0answers
54 views

Call cms block in store language in Magento2

In Magento2, I have CMS a page on which I want to upload the customer registration form. I have inserted this code for it: {{block class="Magento\Customer\Block\Form\Register" template="...
1
vote
1answer
242 views

Terms and conditions from Static block magento2

I need to show Terms and condition text before place order button of each payment method. Which file i need to override to show content from static block. As i checked terms and conditions text comes ...
1
vote
2answers
289 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
137 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-...
0
votes
0answers
152 views

Schedule CMS block content change on a specific date

We have a CMS block on our front page and we would like to automatically change the content of it on Black Friday, for example. How could we do this?
0
votes
1answer
357 views

How to change the position of the block in magento2.2.2

I just installed a buy-now plugin, But it affects the display of other features. How should I change it so that the buynow-button is displayed on top of product-addto-links.Please help me!!!! I don't ...
2
votes
0answers
87 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.