Questions tagged [cms-block]

Denotes questions related to CMS blocks.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 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
48 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
55 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
23 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
30 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
23 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
93 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
28 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
21 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
13 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
16 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
51 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
88 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
13 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
16 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
46 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
114 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
109 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
90 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
157 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
63 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
78 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
44 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
135 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
218 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
1k 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
31 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
53 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
39 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
11 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
135 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
178 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
95 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
45 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
157 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
277 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
107 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
115 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
271 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
72 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.
1
vote
1answer
55 views

How to call product new.phtml in admin cms home page magento 2.2.6

How to call new.phtml file in the home page admin Magento 2.2.6 version? Please check my screenshot link here http://prntscr.com/lapiu7. And also check my theme default.xml code. <referenceBlock ...
0
votes
1answer
84 views

Products Collections not loading using block in cms magento 2?

app\code\Namespace\Module\Block <?php namespace Namespace\Module\Block; class Catproduct extends \Magento\Framework\View\Element\Template { protected $_storeManager; ...
1
vote
1answer
36 views

Magento 2 | Blocks don't appear

I created a new page layout for my home page. I want it to display 3 blocks next to each other. It should look like this: I created the blocks in backend but with the below code they don't show up. ...
0
votes
0answers
71 views

Add extra slashes(\) when save block or widget

On cms page or block when i try to save that contain block like <p>{{widget type="Magento\Cms\Block\Widget\Block" template="widget\static_block\default.phtml" block_id="8"}}</p> It ...
2
votes
0answers
88 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 ...
3
votes
1answer
1k views

Magento 2 how to Load custom collection data using Ajax

I want to display modal collection data using load more Ajax functionality, currently i am display load more data using jquery & CSS. Because for now i have a limited collection data but in ...
1
vote
1answer
114 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 ...