Questions tagged [cms]

Denotes questions for the CMS section.

174 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
2 answers
3k views

Magento2: How to add separate css file on each cms page?

Is it possible to add individual CSS file on each cms page? Upon researching, I can do it by adding code on Layout update XML. Unfortunately, it isn't working. Here's my code: <head> <...
Richmond Azarraga's user avatar
6 votes
0 answers
1k views

Magento 2 editor.js Unexpected Token

The content editor in the backend is not displaying on my site. I'm getting the following error: editor_template.js:1 Uncaught SyntaxError: Unexpected token < editor_plugin.js:1 Uncaught ...
AlexL's user avatar
  • 381
5 votes
0 answers
208 views

Magento 2 : Add Image Field on CMS Page

Here is my code > app/code/Vendor/Module/etc/db_schema.xml <?xml version="1.0"?> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Ekta's user avatar
  • 101
5 votes
1 answer
2k views

Magento 2: Advanced Custom Fields for CMS Pages

As in Wordpress, we have https://www.advancedcustomfields.com/. So in Magento 2 we have http://www.advancedcontentmanager.com/download-acm-extension-m2.html It helps Customer/Client to Manage their ...
Jackson's user avatar
  • 9,849
3 votes
2 answers
740 views

Unable to save block changes using Page Builder in 2.4.5 EE

I'm Unable to save block changes using Page Builder in Magento 2.4.5 EE Issue mostly found in google chrome, brave, edge all with windows operating systems. however i tried to replicate the issue in ...
Rejith's user avatar
  • 191
3 votes
4 answers
2k 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> ...
gajjala sandeep's user avatar
3 votes
0 answers
258 views

Magento 2.3.1 CE Tinymce Error

We have upgraded Magento from 2.2.3 CE to 2.3.1 CE successfully. But we are facing few issues with the Tinymce js from admin end product edit page and cms pages etc.. when using Show/Hide Editor.. ...
Nagaraju Kasa's user avatar
3 votes
0 answers
206 views

Magento 2: How to manage Floodlight Tags for Pages?

Would like to set different Floodlight Tags for (Homepage, Different Category Page, Product Page). How to achieve this? https://support.google.com/ds/answer/6029713?hl=en How it will be useful?
Jackson's user avatar
  • 9,849
3 votes
2 answers
3k views

Magento 2 widget doesn't show - how to debug?

I have a module that is installed in other sites. In one site it doesn't show up when inserted into CMS Pages. {{widget type="Company\Modulename\Block\Widget\Test" template="widget/newsletter/test....
user1324762's user avatar
3 votes
0 answers
32 views

Custom Attribute listing

Hello I have created one custom attribute "Brand" with select box and add lots of brand for product. Now I want to display brand value with alphabets order in cms page.
Ravi Thanki's user avatar
3 votes
1 answer
1k views

Programmatically create a wysiwyg editor for frontend magento 2.3

I don't see any examples in frontend of magento for this case. Wonder how to add editor field from php class instead template When try to call wysiwygConfig->getConfig() in my block class i got error ...
mrtuvn's user avatar
  • 3,263
2 votes
2 answers
1k 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?
Saravanan DS's user avatar
  • 1,116
2 votes
1 answer
60 views

the word "UPDATE" causes CMS page not to save Magento 1.9.4.2

Here's a strange one... I'm editing my privacy policy page in CMS>pages and copy/pasting the text out of notepad++, then formating with the wysiwyg editor in magento, then cleaning up the html that ...
grizlyadams's user avatar
2 votes
1 answer
182 views

How do I add in jump marks (bookmarks) into a CMS page on Magento 1.9?

I am trying to create an FAQ page for our website on Magento 1.9 and I want to list the questions at the top and then jump link them to the answers. I am using the CMS creator. Does anyone know how/if ...
Mel Tucker's user avatar
2 votes
0 answers
322 views

Using inline SVG in the wysiwyg/backend cms elements

How can i get the wysiwyg/backend cms editor to accept inline svg code, i want to make the svgs stylable which means they need to be injected. Yes i can inject them via javascript, but this causes ...
siux's user avatar
  • 186
2 votes
1 answer
520 views

How to call a CMS page in another CMS page in magento 2

I have two CMS pages in magento 2 . I want to call one cms page to another cms page. anyone can help me.
Sarvesh Tiwari's user avatar
2 votes
0 answers
237 views

How to edit source of the index page in Magento

I am a professional PHP developer, it's been like 2-3 days since I am trying to work with magento. My task is to optimize the index page. Thing is, I can not edit the "actual" source of index page. ...
user3762712's user avatar
2 votes
0 answers
493 views

Should i use tinymce or tinyMCE in magento 2.3 and also usage for backward compatible

From magento 2.3 i see core team integrated new version of tinymce. It's a good thing. Maybe future they will add more editor for magento. But i have a confuse a bit when to use wysiwyg through below ...
mrtuvn's user avatar
  • 3,263
2 votes
0 answers
244 views

editing content pages and configuration hangs (spinning donut)

This has happened to me twice now: I get the site installed, I get the template installed, and eventually I start customizing the site and the content pages in the backend stop loading. The first ...
sam msft's user avatar
  • 183
2 votes
0 answers
178 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 ...
anil's user avatar
  • 293
2 votes
3 answers
2k views

Magento2: How to create password protected cms page?

I want to create password protected page. Where users once click on password protected page then they redirect to the password page. And then after filling password, they redirect on actual page ...
Ravi Soni's user avatar
  • 1,809
2 votes
0 answers
327 views

Insert widget in CMS page using the id of widget?

It's able to insert a widget in any CMS page using insert widget button. How can we insert an already created widget using its id in CMS page. I googled a lot...but not able to find this one.
SIBHI S's user avatar
  • 2,055
2 votes
0 answers
544 views

Display dynamic Content in Magento Static Block

I have declared a static block in Magento 1.9.3.2 named 'subcategory_listing' that has the following code: {{block type="subcategory/listing" name="subcategory.listing" template="category/...
ana.coman93's user avatar
2 votes
0 answers
143 views

How do I reinstall Magento 2.1, but keep all my CMS Pages, Blocks, Product Data?

I have built my entire site on a Magento 2.1.2 installation w/ sample data. Using an extension and some manual labor, I was able to delete most of the sample data (categories, pages, products), but ...
Jason's user avatar
  • 538
2 votes
2 answers
3k views

Convert cms page content to html interpretation Magento 2

in my root.phtml, I can call for cms page content with : <?php echo $layoutContent; ?> but I wanted to use $cmsPage->getContent() instead : <?php $objectManager = \Magento\Framework\App\...
shec's user avatar
  • 71
2 votes
0 answers
426 views

Hardcoded OG (Opengraph) tags on CMS homepage Magento 2

On magento 1 I had a code snippet that would tell if the currently loaded page was a cms page, or a particular page and I could use that code to implement the OG tags for the homepage. Facebook doesn’...
Jon Bunce's user avatar
2 votes
0 answers
66 views

Static Block goes missing from home page

I have a Static Block that I've created. When I flush Magento cache, I see the static block on my home page which is what I want. However, if I come back the next day, my static block is missing. ...
Tom's user avatar
  • 143
2 votes
0 answers
83 views

How can I link a category to a newly created CMS page

I created a CMS page and I would like to link the page to one of the categories on my nav. How can I do this?
DevAnd's user avatar
  • 516
2 votes
0 answers
1k views

Where to add Mailchimp Subscriber Popup code in magento

I apologize if this question has been posted before, but I checked all over google and could not find anything. I am trying to add the Mailchimp subscriber popup to my homepage, but cannot figure out ...
Austin's user avatar
  • 21
2 votes
2 answers
202 views

Product 'new' tag/overlay with selection attribute in backend

So I am trying to create an option where I can select yes or no in the backend, and when it's set to yes, it adds an product overlay image with a 'new' tag. Here's what I have so far: Created an ...
magin's user avatar
  • 515
1 vote
1 answer
22 views

bundle product not creating from admin cms

Error:Stock with id "1" doesn't exist
aich.khalid's user avatar
1 vote
1 answer
366 views

Adding layout handles to blocks in cms pages

We have a cms page with a content like this: <p>Lorem Ipsum</p> <div>{{block class="Vendor\Module\Block\Feature" block_id="feature_wrapper_block"}}</div> &...
kolaente's user avatar
  • 338
1 vote
2 answers
252 views

how to add cms block in magento without using our own theme and in app/code?

How to Add CMS Block in Magento2 programatically. I want to add a cms block in app/code insstead of app/design using layout or xml files.
Magento Inquiry's user avatar
1 vote
1 answer
189 views

Magento2: url redirection in controller_action_predispatch observer with setting post parameters

I am working on cms page restriction for specific customer group.I am using controller_action_predispatch event observer to check whether the current page is set for restriction and the current ...
VigneshKumar Radhakrishnan's user avatar
1 vote
1 answer
738 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,...
drgandynt's user avatar
1 vote
1 answer
203 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 ...
Juliano Vargas's user avatar
1 vote
1 answer
841 views

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

I want to Show Static CMS block in Magento 2 html file.
Prits's user avatar
  • 626
1 vote
0 answers
92 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
ishaq's user avatar
  • 173
1 vote
0 answers
259 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" ...
Sam's user avatar
  • 163
1 vote
0 answers
326 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 ...
Rutvee Sojitra's user avatar
1 vote
0 answers
49 views

How can I add default breadcrumbs to cms Page?

I want to add to my home page (Cms) the breadcrumbs on top, I have allready enabled it in the admin area and also added it in the layout file like so: <referenceBlock name="breadcrumbs"> ...
dreid's user avatar
  • 73
1 vote
0 answers
327 views

Magento 2 add CMS block under discount code section on the checkout page

I want to add third party JS code and HTML on the checkout page under discount code section. To add it under discount code first in Checkout_index_index.xml file I have added following code. <?...
Jackson Wyss's user avatar
1 vote
3 answers
85 views

How to redirect page to cms page ie.(carrer.html) via controller file?

Mage::getSingleton('core/session')->addSuccess('Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.'); $this->_redirect('*/*/'); return;
Pranav Patel's user avatar
1 vote
0 answers
138 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 ...
Team18's user avatar
  • 716
1 vote
1 answer
245 views

Override footer content with custom cms blocks?

Is there a way to "delete" all current footer content, and put a single cms block in there? I want to manage all its content in a simple cms block. Designing a custom footer seems to be very ...
Jonas's user avatar
  • 11
1 vote
1 answer
233 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 ...
sissy's user avatar
  • 514
1 vote
2 answers
1k views

Change magento2 cms page layout

I am using 2 column left in home page. It is a cms page. In responsive i need to load as <div class="sidebar sidebar-main"></div> <div class="column main"></div>
Arjun's user avatar
  • 3,546
1 vote
1 answer
415 views

How to upload svg iamges in CMS pages in magento 2

I wish to add svg images in cms pages in backend. While uploading .svg images, it shows invalid file. Please provide me a solution to upload svg images in cms pages in magento 2
Jaisa's user avatar
  • 2,556
1 vote
0 answers
67 views

CMS Page Rules Applied to a Blog Post for Magento 1.9

We have different CSS settings for a typical CMS page vs. a Blog post. I would like the format and style from CMS applied to 1 blog post. What do I need to capture to add this inline for the blog ...
Skoggs's user avatar
  • 11
1 vote
1 answer
2k views

Magento2 : CMS page images showing in admin but not on front-end (WYSIWYG)

My CMS images are showing in admin but not on the frontend for a content page (About Us) that I m making Though the links look clearly wrongly pathed :- https://www.giftshop.com/index.php/admin/...
xf98's user avatar
  • 11