Questions tagged [cms]

Denotes questions for the CMS section.

170 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
962 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 ...
user avatar
  • 381
5 votes
2 answers
2k 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> <...
user avatar
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 ...
user avatar
  • 9,473
3 votes
0 answers
233 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.. ...
user avatar
3 votes
0 answers
187 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?
user avatar
  • 9,473
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....
user avatar
3 votes
0 answers
31 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.
user avatar
2 votes
1 answer
54 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 ...
user avatar
2 votes
1 answer
124 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 ...
user avatar
2 votes
4 answers
1k 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> ...
user avatar
2 votes
0 answers
269 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 ...
user avatar
  • 136
2 votes
1 answer
357 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.
user avatar
2 votes
0 answers
206 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. ...
user avatar
2 votes
0 answers
462 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 ...
user avatar
  • 3,153
2 votes
0 answers
157 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 ...
user avatar
  • 293
2 votes
3 answers
1k 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 ...
user avatar
  • 1,779
2 votes
0 answers
262 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.
user avatar
  • 2,025
2 votes
0 answers
495 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/...
user avatar
2 votes
0 answers
138 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 ...
user avatar
  • 528
2 votes
0 answers
423 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’...
user avatar
2 votes
0 answers
63 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. ...
user avatar
  • 143
2 votes
0 answers
81 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?
user avatar
  • 496
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 ...
user avatar
  • 21
2 votes
2 answers
191 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 ...
user avatar
  • 515
2 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 ...
user avatar
  • 3,153
1 vote
1 answer
29 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> &...
user avatar
  • 288
1 vote
2 answers
29 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.
user avatar
1 vote
1 answer
192 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,...
user avatar
1 vote
1 answer
199 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?
user avatar
  • 1,094
1 vote
0 answers
50 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://...
user avatar
  • 3,087
1 vote
1 answer
75 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 ...
user avatar
1 vote
1 answer
402 views

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

I want to Show Static CMS block in Magento 2 html file.
user avatar
  • 536
1 vote
0 answers
48 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
user avatar
  • 121
1 vote
0 answers
208 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" ...
user avatar
  • 163
1 vote
1 answer
302 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 ...
user avatar
1 vote
0 answers
29 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"> ...
user avatar
  • 63
1 vote
0 answers
304 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. <?...
user avatar
1 vote
3 answers
42 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;
user avatar
1 vote
0 answers
91 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 ...
user avatar
  • 696
1 vote
0 answers
178 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 ...
user avatar
  • 173
1 vote
1 answer
196 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 ...
user avatar
  • 11
1 vote
1 answer
220 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 ...
user avatar
  • 494
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>
user avatar
  • 3,446
1 vote
1 answer
367 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
user avatar
  • 2,408
1 vote
0 answers
44 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 ...
user avatar
  • 11
1 vote
1 answer
1k 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/...
user avatar
  • 11
1 vote
0 answers
152 views

Code refactor : replace model with repository

I am trying to refactor code of app/code/Magento/Cms/Controller/Adminhtml/Page/Delete.php by replacing \Magento\Cms\Model\Page with \Magento\Cms\Api\PageRepositoryInterface and removing direct use of ...
user avatar
  • 8,598
1 vote
0 answers
32 views

need the CMS path directive for a app/code module folder

i added my own module under /app/code/my/module/ , activated it and put a java script under /app/code/my/module/view/frontend/web/js/myjs/myjs.js it works so far. The javascript is called within a ...
user avatar
1 vote
0 answers
29 views

CMS tool for community

Are there any extensions which would provide basic CMS editing for community? I know bluefoot isn't available - is there a plan to add it? Can anyone help me?
user avatar
1 vote
0 answers
113 views

Magento 2 randomly applying wrong custom layout

I have got an issue applying custom layout to a CMS page. I am on Magento 2.2.0 Enterprise edition on a multiserver stack. Here is my configuration : File Vendor/Theme/view/frontend/page_layout/...
user avatar