Questions tagged [cms-block]

Denotes questions related to CMS blocks.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Other Method for call a custom customer attribute

I am doing an internship in a company, and my internship supervisor wants me to display customer data. More precisely, on the back office in the customer information there is a custom attribute that I ...
0
votes
0answers
34 views

How to add cms static block to category description programmatically

Instead of directly add cms block to category description, how to add programmatically?
0
votes
0answers
5 views

Display static block in category page based on applied filters in layered navigation?

how display the static block content based on the applied filters in the category page of the Magento 2
0
votes
0answers
7 views

Map in CMS Block added to Categories Not working

Summary: I have a graphic map on the top of my Categories to show the relative location of some reefs. I am trying to allow the user to select a reef (product) by clicking on the red X on the map. ...
0
votes
1answer
31 views

How to add CMS Static block above product Description Section

I want to add cms block above description, how to do in custom theme?
0
votes
1answer
38 views

How to set cms block design full width?

For my design i am using cms block as my hero banner, how to set full width?
1
vote
1answer
46 views

M2 - Best practice for adding custom less file in Custom Theme for CMS Static Block

I just created custom theme, i have followed a number of guides to properly setting up .less files in a custom theme and nothing seems to be working. Where should i place less file for cms custom ...
1
vote
1answer
34 views

M2 - How to include custom theme directory less file path into my CMS block?

I have created custom theme which is inherit from blank theme, I have created more than one CMS block and include into CMS page for home page design. One of my CMS block named service banner In the ...
0
votes
0answers
29 views

Pull in Terms and Conditions from Static Block

On Terms and Conditions we try to pull in a static block {{block class="Magento\Cms\Block\Block" block_id="terms_and_conditions"}} {{block id='terms_and_conditions'}} Both ...
0
votes
0answers
9 views

Magento 2.3: How can I change the language of the tiny editor?

I am currently trying to type with a Spanish keyboard and it does not allow me to type accents. As I show in the image, when I try to write an accent, it adds the character without first writing the ...
0
votes
0answers
21 views

Magento 2.3.2 How to display custom attribute (image) in CMS Block

Each one of my products has a custom media image attribute which is an called 'height-image'. I would like to display this image in a CMS Block on the product page. Can anybody explain how to call the ...
0
votes
0answers
13 views

How to create static Image Grid Gallery similar to Category Page's Product Grid gallery on a CMS Page

Is it possible to create Image Grid gallery that resembles Category page's Product Grid Gallery in appearance & pagination? I have tried adding Image grid with pagination using OwlCarousel, ...
0
votes
3answers
22 views

Magento 2 how to work with CMS blocks and CMS pages on repository?

I have created many blocks but as far as I know only by exporting them from database is the only way to have their code. Is there another way to have the files? because pushing and commiting .sql to ...
1
vote
0answers
19 views

cms blocks removing content after save in magento 2?

cms block break html tags after saving data. it is removing url of image and display like this <div class="col-sm-12 col-xs-12"> <a href="#"> <img class="...
0
votes
1answer
20 views

show all products in one page on magento 2

I want to show all products in one page from a custom cms block. This is the code I tried: {{block class="\Magento\Catalog\Block\Product\ListProduct" template="Magento_Catalog::list....
0
votes
1answer
34 views

Display CMS Static Block At Shipping Step Outside Order Summary

I want to display a cms-static block outside summary at shipping & payment step in side bar please check below attachment of output Shipping Step Payment Page Find checkout_index_index.xml code ...
1
vote
0answers
21 views

Show wishlist counter on header when it doesnt have items

I need to display cart and wishlist counters on my own header block. For the first one i've just modified the CSS to display block. But I can't find how the wish list counter works, so it will show 0 ...
1
vote
1answer
26 views

Magento 2 - WYSIWYG uploaded images resized to 500px wide. How can I prevent this?

When uploading large images to be used within a block or page, Magento 2 resizes them to 500px width. I don't want that instead I want them left at their original size. I have no extensions installed ...
1
vote
0answers
76 views

Cannot insert widgets in CMS page or static block, somebody know what could be wrong?

using Magento version 2.3.5-p1. Have the follwing problem and do not know why this is not working anymore. Editing a block, disable editor and clicking on "insert widget" I get a 404 page ...
0
votes
2answers
34 views

How to add Slick Slider

I want to add slick slider on my home page in magento using static block and phtml with rotating images. if anyone have idea about that then please answer my question as soon as possible. Thank you ...
0
votes
0answers
145 views

How to dynamically add MediabrowserUtility fields to widget in Magento 2?

I am trying to make a widget that allows creating a banner with multiple images and the number of images dynamic. This ideally would be with the Media browser utility. What I have so far is a single ...
0
votes
1answer
84 views

Override xml files

Is it possible to override etc/import/block.xml with child theme ? I have modified block.xml itself and works fine for now but if I update 3rd party extension my modifications will be lost . I am ...
1
vote
1answer
372 views

Magento 2.3.5 - Inline Translate within a CMS Block

I'm running a multi website and store setup. I'm trying to use inline translation within a CMS block so I don't have to create multiple blocks for different stores. For example I'm using this within ...
0
votes
1answer
25 views

Magento 2.3.4 - Call phtml file within CMS block

I'm trying to call the following phtml file into a CMS block. Phtml file location app/design/frontend/{Package}/{theme}/Magento_Newsletter/templates/subscribe_footer.phtml I tried using {{block ...
0
votes
0answers
47 views

How to get another store url link in current store using CMS block in magento2

I want to get test store(www.teststore.com) pages URL on the default store menu(www.mainstore.com). For that, I have created a cms block for add custom links in the menu on the default store. Top-...
0
votes
0answers
63 views

Magento 1.9.4.0 CMS Block Widget Issue

I'm trying to add widget to cms block or page but when i add it only display short code on page and not render, i tried different magento default widgets results is same also tried using code on ...
0
votes
0answers
242 views

Magento 2 with Page Builder: How to get correct HTML tags

I just recently upgraded from 2.2.5 to 2.3.4 As i can see CMS blocks now have page builder, my blocks data got migrated correctly: <h1>My Custom Title</h1> however if i press save, i ...
0
votes
0answers
12 views

How do I insert a sign in link into a CMS block and have it redirect back to page of origin after user logged in

I have a global banner that includes a CMS block on every page. In this block, I have a link to login and to register. I tried just setting the path to the login page, but i quickly realized that it ...
0
votes
0answers
30 views

How can I call a {{block type}} for related products?

I have blocks that call featured home products in a sidebar (see example below): {{block type="filterproducts/featured_home_list" name="featured_sidebar" product_count="6" template="filterproducts/...
0
votes
1answer
510 views

How to update existing CMS block content using data patches?

I have updated content for the existing cms page by using data patches in Magento 2.3.3, but the same approach not working for CMS block. <?php namespace Test\CmsExport\Setup\Patch\Data; use ...
2
votes
2answers
669 views

Magento 2 graphql get the cms block based on store

I am trying to get the cms block based on store, but it is alway returning the default store block content. The query I used : { cmsBlocks(identifiers: "login-data") { items { identifier ...
0
votes
2answers
44 views

Show parent categories on a page

I am a beginner in Magento. This may be a simple question. I have a header menu 'shop'. This link should redirect to a page that shows all parent categories. How can I do this? any help is really ...
0
votes
1answer
40 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 &...
1
vote
2answers
687 views

How to make the Video Autoplay in cms block? Magento 2.2

In Cms Block, I'm trying to add an embed Youtube video that would autoplay upon the page is loaded. However, the part that defines autoplay "?autoplay=1&loop=999999999999&playlist=_bkTXNozzzQ" ...
1
vote
2answers
97 views

Adding a block inside a block already in a container

I have a third-party module and I'm trying to inject a block of my own (a CMS block) between two of their blocks. I'm doing something wrong because I can get my block to appear at the very end or the ...
1
vote
1answer
54 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
56 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
463 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
25 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
318 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
1answer
289 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
1answer
56 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
81 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
162 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
92 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\...
1
vote
0answers
273 views

How to remove extra divs in my Page Builder CMS blocks?

While I'm saving the static block extra div's are adding to static block. How to avoid the divs in Magento 2.3? <div data-content-type="row" data-appearance="contained" data-...
2
votes
4answers
574 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
147 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
59 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
671 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 ...

1
2 3 4 5 6