Questions tagged [cms-block]

Denotes questions related to CMS blocks.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Magento widget not pulling through

I have a Magefan blog widget that is pulling through the widget code on the frontend on the dev site but it works on my local! The module is up to date on both sites but I'm not sure why it's working ...
0
votes
0answers
25 views

How to add image with link in CMS Block using Page builder in Magento 2?

In Magento 2.4.2, I am trying to add the CMS Block with image and link Image should be based on Device - Responsive ie., for web page view one image, for mobile view different image. How to add this? ...
1
vote
2answers
33 views

magento 2 how to get cms blocks toOptionArray

<?php namespace [Vendor\Module]\Model\System\Config; use Magento\Cms\Model\ResourceModel\Block\CollectionFactory; use Magento\Framework\Data\OptionSourceInterface; class CmsBlocks implements ...
0
votes
1answer
21 views

Call CMS Block in Non-Checkout KO Template

I am using the WeltPixel theme and want to add add a CMS block to the ajaxlogin-popup.html file below the "Forgot Password" link. I am getting this error in console: Uncaught TypeError: ...
0
votes
2answers
35 views

How do you create or modify a CMS Block without Deprecated Methods?

How can I create or modify a CMS Block from a list according to that CMS Block if there is or not, in the same programming code without depracted methods? load() & save() -> is the deprecated ...
0
votes
1answer
47 views

Display a static block in Homepage listing all categories

I'd like to display a static block in my CMS Homepage which lists all 1 level categories. How should I do?
0
votes
1answer
19 views

Product -> Content -> Edit with Page Builder -> Apply Template -> CMS Block application problem

When inserting the previously created CMS block into product description, i can apply template in pagebuilder in Super Admin, but i cannot apply template if i am not Super Admin. Is there any way ...
0
votes
1answer
34 views

How to display CMS static blocks based on store in Magento 2

I have created two stores english and german and created static blocks with different contents based on the store in admin.Block Id(test) for both stores are the same but both blocks assigned to ...
4
votes
1answer
99 views

How "cms_block_store" and "cms_page_store" tables are working with Primary keys in Magento?

I have a general doubt in MySql foreign key constraints and Magento. As per MySql, a table should have only one primary key for a table and a Primary key should contain unique values. I checked in &...
0
votes
0answers
18 views

Need to manually write in the DB in patch_list table a particular CMS block

I have just been asked to do this, and me and my colleagues have no idea, any help would be greatly appreciated!
0
votes
1answer
51 views

Can't get module to show in static block

Using Magento 2 I created a cms static block that points to {{block class="Inchoo\ModalOverlay\Block\etc" template="modal_overlay.phtml"}} I followed this guide on how to create ...
0
votes
3answers
114 views

Header and Footer in Luma theme

I want some customization theme luma in my magento 2 website, so I need add in header for all pages banner - custom blocki created - (banner-section) below menu and in footer I need add custom block (...
0
votes
2answers
209 views

magento2 how to implement graphql with alpine.js get cms static block data

I have create a static block in magento2 admin panel. I like use graphql with alpine.js to get data of the static block.
0
votes
1answer
28 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
92 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
10 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
16 views

HTML Map Tag in Category Description 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
47 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
62 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
80 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
41 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
33 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
28 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
34 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
3answers
94 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
65 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
31 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
44 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
29 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
52 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
110 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
55 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
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 ...
2
votes
1answer
1k 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
35 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
69 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
1answer
894 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
1k 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
42 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
1k 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
176 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
56 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
88 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
731 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
470 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
473 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
80 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
90 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\...

1
2 3 4 5 6