Questions tagged [cms-pages]

Denotes questions related to CMS pages.

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

Magento 2 change CMS Home Page?

I'm using Magneto 2 v 2.3.3 and Porto theme v 3.2.2. Whenever I try to change to a new CMS Home Page my site breaks. I have been following these instructions but my site just crashes: Where do I ...
0
votes
0answers
13 views

Notice: Undefined index: PK_CMS_PAGE in \vendor\magento\framework\EntityManager\EntityMetadata.php on line 96

I shifted my site from server to local. But it shows an error like this: Notice: Undefined index: PK_CMS_PAGE in \vendor\magento\framework\EntityManager\EntityMetadata.php on line 96 can ...
0
votes
0answers
3 views

How to sync/merge static pages and blocks from integration to staging in Magento2 cloud?

How to promote cms pages and blocks from Dev to Integration to Staging in Magento 2 commerce cloud?
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 ...
6
votes
2answers
7k views

URL Rewrite: From category to CMS Page

I've created a CMS Page. URL Key = about/page1. I've created some Categories. One of them, category #1, it's called about. URL Key = about and its first subcategory, category #2, is named Page ...
0
votes
0answers
8 views

How to use magento msp recaptha on cms page?

I am using magento msp recaptcha. I added contact form in cms page from magento admin {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form-footer.phtml"...
5
votes
3answers
1k views

Magento Show Specific product on cms page

I want to show two configurable products on a cms page. The two products are under a sub category (id = 343). I've used below code in my cms page: {{block type="core/template" name="home.catalog....
4
votes
5answers
7k views

Magento2: How to add different custom css file on specific CMS pages

I tried so may things but unable to add the CSS & JS files for each Static CMS pages. I know if CSS can be added in cms_page_view.xml but this will reflect in all pages. is there anyway to add ...
0
votes
0answers
22 views

Magento CMS page continuously loading with blank page

Magento EE 1.14 contentiously loading with blank page but all html script available in view source. Is any one have the solution for this
3
votes
1answer
48 views

How to exclude specific Products, Categories and CMS Pages from sitemap.xml generation in Magento 2?

I need to create a custom module that allows excluding/skipping the Products, Categories and CMS Pages URLs from generating in sitemap.xml. I had tried this solution for Magento 1, How could I do it ...
0
votes
2answers
34 views

Put background color css for particular cms page

I want to add background color for this cms page
0
votes
1answer
39 views

Where will the newly created cms page with admin panel appear in magento files?

i have to render a page depending upon the logging in customer. so I need to create two home pages basically. If i create a new cms page with admin panel then where it will appear in files because i ...
2
votes
2answers
132 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 {...
1
vote
1answer
35 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 ...
0
votes
0answers
27 views

Magento 1.9 - What is the best Practice to Display Top Selling products list?

I have to display best selling products list, just confused what is the best practice. Create Module & CMS Page Getting best selling values from database using products id display product ...
1
vote
0answers
29 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.
1
vote
1answer
876 views

Show all products on one page in Magento 2

I need a page where all products should be displayed. All products from all categories, also including filters by attributes. I have tried to use the following block {{block type="catalog/...
0
votes
0answers
23 views

Magento 2 - UI Component WYSIWYG field not saving

I am trying to add some fields to CMS pages so I can add some stuff to the sidebar. I followed some tutorials I found online but seem to be missing something. The current setup correctly shows the ...
0
votes
1answer
19 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 ...
1
vote
0answers
19 views

M2 - Variables empty in CMS Pages

No matter if System Variable or from the STORES > CONFIGURATION > Store Information fields, I can not output variables in cms pages. It feels like I'm missing something so basic, that I can not even ...
6
votes
1answer
125 views

How to preview a cms page in Magento 2 admin panel

Is it possible to preview the CMS page before push live? I can't preview my page while creating a page on cms page in admin panel Magento 2. How can I preview?
1
vote
2answers
905 views

How do I find the location of a page?

I have a contact page that is not in cms pages. It has a static block that is only used on this page. I can edit it and see it, but can not find the page. Any suggestions on how to track it down? Is ...
1
vote
2answers
1k views

Exclude CMS page while creating sitemap.xml in magento admin

We have certain CMS pages in our magento e-commerce store. Now we need to create sitemap.xml and as we all know magento admin provides to create a sitemap. But here, the problem is when I generate a ...
0
votes
1answer
2k views

magento 2 layered navigation on CMS page or homepage with selected category

I want layered navigation on CMS page with selected cateogry. I am following this link It is showing all category and attribute. But I don't know how to set selected category. For example on Clothing ...
0
votes
2answers
56 views

Magento 1.9 homepage not updating

Magento doesn't update content on homepage (changed thorugh cms -> pages -> electronics-home). I can even disable the Electronics-home page and it doesn't change a thing. Any ideas?
1
vote
2answers
52 views

Magento2 - InstallData Cms Page with content from file

as the title suggests I'm creating a module that programmatically installs pages on cms_page, my problem arises when I want to load the contents of a phtml file and pass it as html into the array to ...
0
votes
1answer
1k views

Magento 2 : Show active link of cms page in customer account navigation?

I have added a custom cms-page link in customer account navigation. My custom link is showing in account navigation and working too, but it's not showing as active/current on click. Cms-page > ...
1
vote
1answer
20 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
1k 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\...
6
votes
2answers
5k views

How to add custom link in main menu in Magento 2?

I want to add CMS pages and Contact page link in the main menu. How to add these links in the main menu and their submenu as well?
0
votes
1answer
1k views

How do i use a different header for each page

I'm new to Magento i have a bit of a problem i have 4 pages e.g home about etc... all these pages use the same header, i have created another header and updated in the page.xml file, from what i ...
1
vote
2answers
3k 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 ...
3
votes
2answers
1k views

CMS tree structure in Magento 2

We are looking for a method to build up the cms pages in Magento 2 with a tree structure so that you can set hierarchy. For Magento 1 you have several modules, but we didn't find anything for Magento ...
0
votes
2answers
35 views

Image is not showing in frontend when we call the phtml file in CMS page

My requirement is to create a slider without using extension. So I have created a phtml file with the html code and script for slider and called this phtml file in a cms page. But in the frontend the ...
1
vote
3answers
852 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,...
2
votes
1answer
497 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 ...
0
votes
1answer
22 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
0answers
61 views

Magento 2 Christmas advent calendar

Is it possible to create an advent calendar on a page? I want to lock the dates and only let the users view current date or previous dates to be clickable
0
votes
0answers
38 views

Magento 2: Allow switching store view on a CMS page with different URL keys

My store has multiple store views for different languages. When the user is on a CMS page (for example 'contact') and switches to a different store view, the URL remains the same so the user sees the ...
0
votes
0answers
8 views

Images in Imagebrowser not shown in Magento 1.9.4?

When I open the image in browser on a CMS page for example, the existing or uploaded images are not shown. They are uploaded correctly and are also shown in the editor and on frontend, its just the ...
0
votes
1answer
39 views

How to use if else in cms block magento 1.x

I want use if else like this code but it not working. Please help me {{if config path="system/config/path" == 1}} <p> ok </p> {{else}} <p> no </p> I create it in home page, ...
0
votes
0answers
32 views

Magento 2 : How to Create Recent Orders Block on CMS Page or Static Block

I want to call block on the home page of the store. how can I add recent order block on store home page from admin? Thanks I have tried this <p>{{block class="Magento\Sales\Block\Order\Recent" ...
0
votes
0answers
27 views

Rich Snippets for Google Local Store - Add to CMS page in Magento1

For a Magento1 store, we are looking to add rich snippets to various CMS pages. To allow Google to pickup the data for the website's different store locations. We have seen plugins that allow you to ...
3
votes
4answers
5k views

Magento 2 : Add custom js to a single CMS page

I am trying to add custom js to a single CMS page in Magento 2.2.5. Here is what I got: I have put the rellax.min.js file at :/app/design/frontend/TemplateMonster/md/web/js And I want to use that ...
0
votes
0answers
35 views

CMS page Header alignment issue

My cms page : content: <div class="container"> <div class="list-group-item list-group-item-success"><h1>giri.in</h1></div> <div class="row jumbotron" ...
0
votes
1answer
37 views

Custom Code CMS page header collapsed

Here is my cms page code, <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-...
1
vote
1answer
30 views

Magento 1 - how can i put review for CMS pages and articles

I want to put review and rating widget for products, I want to put review plugin for pages and article , How can I do this? thanks
0
votes
1answer
561 views

Magento 2.3.2 upgrade issues (category page, di compile, and cms pages)

Magento upgraded from 2.2.6 to 2.3.2, and there are issues: - All category pages are having error, "Undefined factory mysql". Exception #0 (DomainException): Undefined factory mysql Also di:...
3
votes
0answers
63 views

Display message from message manager above specific block Magento 2

I have redirection from controller to CMS page with custom message defined using messageManager. It show up the message before my CMS page content begins (below header part). but i want to display ...
0
votes
0answers
139 views

Undefined index: PK_MT_CMS_PAGE in vendor/magento/framework/EntityManager/EntityMetadata.php

I moved a Magento project from localhost to the server. its working fine in localhost but when I move it to the server and change the configuration (env.php and in the table) it's showing below error. ...