Questions tagged [cms]

Denotes questions for the CMS section.

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

Magento 2.4.3 CMS Page custom layout update

I am trying with no luck to update a layout to a specific page only to our Magento 2.4.3 store. CMS Page URL key is: product-finder I have created in child theme folder this xml file: app/design/...
0
votes
1answer
35 views

How to display cms block in product page if some attribute is set to yes

I want to display cms block if product has the attribute set to yes. A product may have multiple attributes set to yes, and may display multiple cms blocks. Attribute label text will be a BlockId. It ...
0
votes
1answer
46 views

Magento 2.4.2 invalid date format by default, can't change date format in UI component

I would like to specify the date format for a new date field in my CMS page form. I have created a new cms_page_form.xml field which links to a date field in the MySQL database table cms_page. However,...
0
votes
0answers
14 views

We're sorry, an error has occurred while generating this content,shows on home page in magento 2

We're sorry, an error has occurred while generating this content. This Error in home page get occures in magento 2.
1
vote
1answer
41 views

Magento 2 How to create CMS block with HTML content programmatically

In Magento 2.4.x, How to create CMS block with HTML content (Text, Image with div structure) programmatically in Page builder section?
0
votes
2answers
16 views

magento 2 get CMS page URL path

In magento 2.4.3, How to get the current page URL in block file. I tried this solution, but not working. My Sample URL: https://magento.com/questions-sample Expected Data to get: questions-sample
1
vote
0answers
22 views

Adding new WYSIWYG text style or format

I would like to add a new WYSIWYG text style, similar to the below image. As per the official documentation, I have managed to add a new style called "Introductory Paragraph": https://...
0
votes
0answers
33 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? ...
0
votes
1answer
28 views

Magento 2.3.4 - CMS_Block Query taking up resource

Hope someone can help because I'm aghast. So we have a 2.3.4 store (migrated from 1.9) which we put live recently. After an hour or so, the site completely collapsed under the traffic (apparently it ...
0
votes
0answers
13 views

Layout update for multiple cms pages using custom handle

I want to make some adjustments to most of the custom created cms pages with some exceptions however. To achieve this I added a block and removed another block from cms_page_view.xml I want to revert ...
1
vote
1answer
20 views

How to add a toggle true/false field in cms page general section

In Magento 2.4.2, How to add a toggle true/false field in cms page general section along with the default cms page save?
0
votes
1answer
13 views

Magento apptha extension frontend not navigable after installation

I am using the Apptha module for magento2 , I had installed the module as well and it appears in my admin panel , but when I navigate to http://localhost:8080/marketplace , I see this result : Apptha ...
0
votes
1answer
84 views

Magento 2: How to use redirect in Router.php

I am trying to redirect a cms page to a custom controller. in router.php I can check the current URL, If the current URL is as an example if it matches /test-url i want to do a redirect to /test-url-...
0
votes
1answer
42 views

Magento 2 CMS Page URL redirect 2.3.5

I want to redirect a custom URL and change the URL path ONLY. If my URL is www.domain.com/about-company or www.domain.com/product-a-faq I want these to be shown in different URL examples -> www....
0
votes
1answer
31 views

Content staging for different magento installations

We currently have an integration and a production stage for our magento shop. The goal is that we configure and create content (products, cms, ...) on the integration stage and deploy them on the ...
0
votes
1answer
23 views

CMS Custom layout update not showing in Magento 2.3.4

I've read the patch notes about moving the Custom Layout Update to a layout file in Magento 2.3.4 so I thought I was doing this correctly but something must be off because I still don't see the option ...
0
votes
3answers
163 views

Magento 2 - All CMS pages are with content blank

In my server with: elasticsearch7, apache 2.4.29, mariaDB 10.4 and php 7.4 I imported my Magento 2.4.2 site. Everything works correctly except for the CMS pages that have empty content and in fact the ...
0
votes
0answers
22 views

How to redirect user to Cart page after "Add to Cart"?

I have made a custom .phtml file to show "Add to Cart" button where I call/use the .phtml file in a CMS page. Below is my code: <?php $sku = $block->getData('product-sku'); $...
1
vote
1answer
232 views

Magento 2 - How to have a custom "add to cart" button in CMS page?

So I am trying to add "Add to Cart" button in my CMS page. In one CMS page, I will have one item and multiple "Add to Cart" buttons. I'm wondering how can I do this? All the ...
0
votes
0answers
36 views

Magento 2 Translate message im adminhtml auth login

i want to translate two messages in the logging panel to CMS (The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. and Incorrect CAPTCHA.). ...
0
votes
1answer
112 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
0answers
12 views

Magento 2.3.4 Can you call a widget inside a widget

Can you call a custom widget inside a custom widget?
1
vote
1answer
55 views

Magento 2.3.5 This identifier is reserved for "CMS No Cookies Page"

I have 4 stores: Each store have the same enable-cookies I would like that each cookie cms url key have a different url so that is relevant to that store E.G: French store URL Key: activer-les-cookies ...
10
votes
4answers
5k views

CMS and Block content warning Magento 2.4.2

Does anyone have any information or details on the following warning that I am seeing in the 2.4.2 CMS and Block content areas on saving? Temporarily allowed to save HTML value that contains ...
0
votes
0answers
67 views

On save CMS page or CMS block gives 404 on admin side if content has image src

Facing strange issue while saving CMS page or CMS block on admin side. If Content of the page or block having image tag then on save it gives 404 error: Page not found. <img src="{{media url=&...
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
1answer
122 views

How can I restrict SPECIFIC CMS pages from being seen by non logged in customers?

I found solutions for redirecting non logged in users to the login page for all CMS pages, but I only want to restrict a few CMS pages. How can I specify which pages to restrict? My code right now: ......
0
votes
1answer
61 views

Magento Snippet code in CMS not working with double curly braces {{}}

My 3rd party plugin company ask me to Snippet in this code to my CMS page. but Magento did translate something else for the double curly braces. How can I Snippet in below code to the CMS page? <...
0
votes
2answers
31 views

Currency conversion in CMS page

I need to put some prices into a CMS page. How can I insert and display them accordingly to the currency selected?
0
votes
1answer
41 views

How to add navigation menu in a custom landing page

I am trying to create a Landing Page for my Magento site. I created this by creating a new CMS page through Admin/Content/Pages. I'm wondering if I can add a custom sticky navigation menu to this page?...
0
votes
1answer
275 views

Magento 2 - Add button to the Header links

I am trying to add a button called "social media" to be beside the Storeview switcher. I tried to follow the answer in: Magento 2 - Add a Custom Button to header.phtml So I created a CMS ...
0
votes
1answer
19 views

Magento directing all link for pages and admin to old domain except the homepage

I have done all magento things which were supposed update the core_config data table setup:di:compile setup configured base_url through command line and also done with n98 My site home page is only ...
1
vote
1answer
283 views

How to Show Static CMS block in Magento 2 html file?

I want to Show Static CMS block in Magento 2 html file.
1
vote
0answers
44 views

Shop by brand on CMS Page

How to shown Layered navigation like shop by categories or shop by brand on left side of CMS page, in Magento 2.3.5
0
votes
1answer
125 views

How to enable AdobeStock integration?

I have a Magento 2.3.4 installed and I installed the AdobeStock integration via the official repository. https://github.com/magento/adobe-stock-integration How could I enable it via the admin panel?
1
vote
0answers
199 views

Add custom to field to CMS page based on template in Magento 2

I have several custom fields I added to my CMS pages but I only want them to show up on the backend if the admin user selects a specific template. For example, the text field "doctor name" ...
0
votes
1answer
631 views

Hide CMS static block programmatically in Magento 2

I need to Hide static cms block "block-id-1" from frontpage programmatically customer group based. I need to add event to hide cms static block or any other method. I want to use admin ...
2
votes
2answers
177 views

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, ...
1
vote
1answer
265 views

Getting error while reindexing in magento2

While re indexing in magento2 getting below error Fatal error: Uncaught TypeError: Return value of Magento\PageBuilder\Model\Stage\Preview::isPreviewMode() must be of the type boolean, null returned ...
0
votes
2answers
642 views

data-mage-init breaks in cms static blocks or pages - how do i get an accordion?

I have been trying to have some blocks with collapsible content, but to put them in cms blocks so the text can be maintained by a normal human I have found, thanks to previous stack discussions, that ...
0
votes
1answer
39 views

Where is the email template for the new user, created by admin from cms. Magento 2

I have to make an email template, that is sent when the administrator creates a new account. I made a template, but in cms I can't see where it is used. I was looking for it in: - stores/configuration/...
0
votes
1answer
179 views

How to add cms page URL in sitemap.xml

How to created sitemap.xml last week in my production site. Today I have created a new CMS page. How do I add this page's URL to sitemap.xml? Please provide me a solution.
0
votes
1answer
27 views

Make specific page in magento as not cacheable

I want to make a specific cms page to be set as a non-cacheable page. Is there is a way to add XML code in layout update to achieve same I'm calling block in page HTML with code as below <p>{...
1
vote
2answers
51 views

Changing icon on CMS homepage

I am new to Magento. I am trying to make changes in CMS homepage. The page looks like this: I am able to change page title and heading from cms_page table. But not able to find way to change the ...
0
votes
1answer
95 views

JS gets automatically removed from CMS page

I am trying to add some JS to the CMS homepage. I tried to add an external js file as well as adding the code directly. See code below. When I save the CMS page and test everything the js works fine. ...
0
votes
0answers
30 views

PHTML receives no response from the Ajax Controller

In order to be able to load the product list according to the customers' selection, I tried to use an Ajax query. However, I have the problem that I do not receive the response from my controller. The ...
0
votes
1answer
34 views

Dynamically generated block identical for all clients - Why?

I use PHP to create the content of a block dynamically on a CMS page (created via the admin portal). But I found out during testing that the first generated block remains active for all clients until ...
2
votes
1answer
44 views

Add a custom/programmed block to a CMS page

I have created a page using the CMS (via Admin Portal) and now I want to add a custom block (programmed) to the page. You can see the created page here: My structure is the following: but ...
0
votes
0answers
35 views

Magento 2 CE - backend system.xml page tree

Is there any way to add to a config variable Cms PageID order wise (like a drag and drop) in configuration? I use a simple cms page retriever but there is no option to order page. <source_model&...
1
vote
1answer
1k views

Magento 2 : create newsletter subscription CMS page

do you have any reference that can share, how to create a CMS page that has a newsletter subscription form in it? I don't need an extra column for the data. Once the user subscribes there, it will ...

1
2 3 4 5
14