Questions tagged [cms-pages]

Denotes questions related to CMS pages.

Filter by
Sorted by
Tagged with
2
votes
2answers
129 views

Magento 2: How to setup layerd navigation in custom product collection?

I am trying to set a layered navigation filter on the custom cms page. for that, I have created a 1 cms page name test with two-column with left bar. and inside it, I have called one template file {...
2
votes
1answer
44 views

How to include CMS page in the phtml page in magento 2.2

I want to include the CMS Page in a phtml template. How can I achieve this? Can anyone help me over here?
2
votes
2answers
904 views

Is it possible to get system configuration value in Static block/ CMS page

I have eight static block list. Client want to change some part of string in these static block according the current month. I can achieve this though the code, but client have access only of backend, ...
2
votes
1answer
3k views

Magento2: Add JS from Admin CMS page Design “layout update XML”

I did added JS file from design layout update from Admin CMS page- > Design layout update XML , but it showing jQuery is not defined error, When I view source , these files are being added before the ...
2
votes
1answer
1k views

Add a static block through xml to a specific cms_page?

From a previous question I learned how to add some static blocks to the CMS homepage like this: how to achieve this 2 columns page layout? The xml is created in: app/design/frontend/<Vendor>/&...
2
votes
1answer
1k views

Magento 2 CMS block and CMS page store change programmatically

I had migrated data into magento 1.X to 2.X. In the migrated website I have around 2000 pages+blocks so I have to set all CMS blocks and CMS pages in all stores. Give me a better solution .
2
votes
1answer
67 views

Create a new page magento 2

How to create a new page in magento 2, i don't want to use block. When i click on "rubrique x" it will lead me to my URL /nameoff my page and not /my page.html
2
votes
1answer
361 views

Magento 2.2.2 - Redirect user to CMS page based on IP using Observer

events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event ...
2
votes
3answers
4k views

Magento 2: change the “Contact Us” page layout

I am working on a Magento 2.1.7 shop and I have created a child-theme of Magento Blank. I've changed the layout of my homepage to 2 columns with left bar from Content -> Pages. I need to do the ...
2
votes
1answer
345 views

Magento 2.1.7 add CMS page multiselect to CMS page

I'm new to Magento 2 and I'm trying to add a multiselect of all (for now) CMS pages to the CMS pages in Magento 2. What I mean by this is that when creating/editing a CMS page, there should be an ...
2
votes
1answer
439 views

How to list all the products of a paticular attributes in CMS page magento 2

I need to display All the products by a specific product attribute in CMS page.
2
votes
1answer
173 views

Creating custom html thumbnails for cms pages - i.e. news section using title and a custom field image

Basically am wondering is if there is a way to use magento as an actual cms system. i.e. i have an html chunk (static block?!) with some parameters (page_image, pagetitle) <div class="thumb"> ...
2
votes
1answer
363 views

Removing footer for selected CMS page?

I am developing an Ecommerce site and I want to remove the footer from selected CMS page. I have refered this link, which say to remove the footer from entire CMS pages, but I dont need to remove ...
2
votes
1answer
726 views

All other CMS pages redirecting to home page [closed]

I am creating a marketplace using Magento 1.9 and I have discovered that all my CMS pages like "about us", "contact", "terms and conditions" etc are not opening but are automatically redirecting to ...
2
votes
3answers
3k views

How to Set Banner in homepage above the 2-column with left bar?

I need to place banner in magento homepage. My homepage config: I set my homepage as 2-column with leftbar in CMS -> Pages. I need to set the banner in above 2-column with leftbar layout. ...
2
votes
0answers
33 views

CMS Pages are not reflecting changes even after upgrade-deploy-flush-clean

The problem is that the CMS pages are created once they are newly added. But when i edit and do changes from backend(admin) the changes are not showing even after upgrade and deploy which is followed ...
2
votes
0answers
107 views

Magento 1.9 Remove Trailing Slash from Cms page URL

Duplicate Content Issue Example: https://www.example.com/test/ expectation: https://www.example.com/test
2
votes
0answers
93 views

How to get website/store id in the cms blocks/pages Magento2

I'm checking this for long time but couldn't get this.I would like to display the website id through the magento cms block/pages.Without calling it from phtml's. Thanks in Advance.
2
votes
0answers
385 views

Magento2 get url of all CMS pages using their identifiers

I am preparing one common array which returns the complete details of all CMS pages. In this array, I need to pass the URL of all cms pages. I do have an identifier of all pages. How can I get the URL ...
2
votes
1answer
522 views

Magento 2 : How To Add Cms Block on Home Page After Megamenu

I need to create a link from cms block to the home page to render the contents in storefront.
2
votes
0answers
33 views

Magento2: css file modification does not apply

I am using Magento 2.2.4 and I need to design my website with the size of 70%. I am trying to override the css by a theme /custom_theme/web/css/style.css file as follows. But it didn't work. How to ...
2
votes
0answers
329 views

CMS page is not working

I have added one new CMS page. Its redirecting to homepage if preview clicked. I have also checked with default about-us page but still its redirecting to homepage. It should redirect to 404 Page if ...
2
votes
0answers
479 views

Magento 2.1 Enterprise Edition: CMS hierarchy nodes where page_id is NULL

I have noticed an odd issue with Magento 2.1 EE where we end up with hierarchy nodes as part of the Magento EE CMS hierarchy feature which do not relate to any page_id, see the attached screenshot ...
2
votes
0answers
1k views

Custom Field on CMS Page - Magento 2

How would I go about adding a custom field (image upload, specifically) to the CMS Page section? I'm looking to have a field where the client can upload an image, which then you can access it in a ...
2
votes
1answer
496 views

How to get customer registration form into CMS page

Is possible to create a CMS page with some content and Magento registration form .The registration form will function same as the default register form,when submitting the registration form the data ...
1
vote
1answer
7k views

CMS Page URL from ID in phtml (M2) [duplicate]

In a page template (.phtml) file, we can generate a link to another CMS page using the following snippet: <a href="<?php echo $this->getUrl('my_page_url_key');?>">Link to my page</a&...
1
vote
2answers
2k views

How to create custom cms page layout file?

In Magento 2, is there any solution to creating a custom layout XML file for custom cms page? I want to add XML code and CSS and Js only for my custom cms page. I know about there is one field ...
1
vote
2answers
3k views

Magento2: How can update & create the CMS static Page programmatically

How can update an existing CMS static Page and how to create a new CMS static Page - programmatically
1
vote
2answers
3k views

Where do I go to edit the CMS Home Page?

Using Magento 2, I uploaded a theme and trying to edit the imported demo home page. but I can't find where to edit that page to change the blocks on it. When I go to Content > Pages, there's a "...
1
vote
1answer
5k views

How can i call phtml file into cms page by using widget?

I have a phtml file mw/news/slider.phtml. I would like to use this file at cms page. So how can i do this by using widget ?
1
vote
1answer
473 views

Add CMS Block to Sidebar in whole magento 2 site

When I create a static page with 2columns-left layout in magento, it has the space of sidebar on the left. How can I put a static block in this sidebar so it can appear in every page with 2 columns?
1
vote
2answers
544 views

Set Custom CMS page as a home page programatically in Magento 2

How to set a custom CMS page as my Magento home page programmatically.
1
vote
3answers
836 views

Magento 2 Content blocks and pages won't load

Ground floor beginner here. Fresh M2.2.3 install, the first thing I did was to change to production mode. I did these steps: opened app/etc/env.php Set 'MAGE_MODE' to 'production' Cleared all cache,...
1
vote
2answers
1k views

Magento 2 - How to add Font Family in admin panel wysiwyg editor?

Need to add font family in wysiwyg editor.
1
vote
1answer
34 views

Magento 1.9 - CMS page products list error

Display Bestsellers for Specific Magento Categories in CMS page. Following tutorial, https://mercytapscott.com/display-bestsellers-for-specific-magento-categories/ Added following line into cms ...
1
vote
1answer
609 views

How to add Advanced Search form in Pages on homepage in Magento 2?

I am trying to add advanced search form as a block in Pages, but the following code is not working? {{block class="Magento\Framework\View\Element\Template" template="Magento_CatalogSearch::...
1
vote
1answer
23 views

Magento - Should I stop to write JS/CSS directly in the backend in CMS pages?

In Magento you can create CMS pages. It is also possible to add CSS and JS code, directly to the page, which I sometimes do for rather smaller changes and style fixes and such, because then that ...
1
vote
1answer
2k views

Magento2 default Headers and Footers missing on CMS page

When I am adding a CMS Page with layout as 1column xml. The default header and footer shows fine. but I have some existing CMS pages which if I update the layout to 1column, it still doesn't show the ...
1
vote
1answer
2k views

Layout Update XML in magento2 pages in backend

I want to add some other blogs in pages using 2 columns with right bar in pages. For example, I have added code like remove wishlist and I have added my custom block in that Layout Handle in the ...
1
vote
1answer
79 views

Specific block not rendering inside of a static block

Works fine in a CMS page. But I need to render this block in a static block: {{block type="catalog/product_list" category_id="37" template="tm/quickbuy/catalog/product/list.phtml”}} The block ...
1
vote
1answer
76 views

{{skin url=“”}} is removed

I am facing a problem, whenever I am editing CMS page by using editor that time all of the {{skin url=''}} is being removed automatically. Can anyone please advice me some solution?
1
vote
1answer
570 views

Remove Title suffix from cms pages

I have title suffix in magento 1.7 system configuration. I would like to remove title suffix from all cms pages or from cms pages besides home page. How to do this?
1
vote
1answer
1k views

Why is start page missing from sitemap.xml?

I'm rather new on the Magento platform, but I've noticed a weird thing on a couple of my clients' websites. The home page is missing from the sitemap.xml. In all cases the clients' home page is a CMS ...
1
vote
1answer
17 views

How to fix “element is not expected” in a CMS page with no XML changes?

I'm receiving this error message which is mentioned below, but as you can see in the image there are no XML updates, neither content, how can I fix it? Please correct the XML data and try again. ...
1
vote
2answers
153 views

How to change footer and header for a CMS page only using layout XML?

I want to change out the footer and header for a minimized version but only on a certain CMS Page. Is it possible to do this with the layout XML input field to remove the header/footer and add static ...
1
vote
1answer
189 views

How to show particular cms page for specific user group?

I want to show different homepage for wholesale customer.
1
vote
1answer
152 views

Showing certain product price on an cms page

So I am trying to show a certain products price on an cms page. Is there anyway that I can do this? I have a hardcoded landing cms page and I wanted to display dynamically a price of a certain ...
1
vote
1answer
444 views

Insert block before footer in single page cms

I need to insert a block before the footer in single page cms (magento 1.9). I tried to do it by using layout. I have added below code in my layout file : <reference name="footer"> <...
1
vote
1answer
153 views

Pass array in {{block type=“core/template” template=“test/add.phtml” items='.$data.'}}

I dynamically create a cms page or I give the content the path of the block. $data is an array form. /** * @access public * @return void */ public function createCmsPageForStore($data){ $...
1
vote
1answer
1k views

Magento 2 : How to Fetch CMS Page Content Using Search

I want to fetch cms page content using Search.? If anyone have any idea related to CMS Pages Content Search. Can anyone help me?