Questions tagged [cms-pages]

Denotes questions related to CMS pages.

Filter by
Sorted by
Tagged with
7
votes
3answers
3k views

Sitemap.xml change home

On our Magento store the sitemap which Magento automatically generates from the admin panel at Catalog > Google Sitemap adds the home url to our homepage like: <url> <loc>http://our-...
4
votes
4answers
6k 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 ...
3
votes
2answers
13k views

Magento2 contact form in CMS page

in magento 1.x for add contact form in CMS page i use next code {{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}...
4
votes
2answers
3k views

Magento 2 : Add Hero Image Upload Field on CMS page

How to add image upload field to a CMS page and show this on top of my CMS page as Hero image like shown below? Maybe there are simple solutions/tutorials, but I can't find right one.
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 ...
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 ...
1
vote
1answer
132 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 ...
10
votes
4answers
917 views

how to setup noindex,follow in a static page in magento2?

I would set the robots meta tags to "noindex,follow" in a static page. For Magento 1.9 I used to do it like this: <reference name="head"> <action method="setRobots"><value>...
4
votes
1answer
4k views

Magento 2 - How to add or insert PDF file in a CMS page?

Do you have an idea on how to add or insert a PDF file in a CMS page or CMS block in Magento 2? Correct me if I'm wrong for the question title for this thread.
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?
4
votes
2answers
2k views

How to retrieve variable from CMS page in Magento 2

In Magento 1.9.x, we can do it like below In CMS page, add content: {{block type="core/template" name="..." my_vars="123,456" template="path-to/test.phtml"}} Create path-to/test.phtml: <?php ...
4
votes
1answer
1k views

add to cart button in CMS page

In Magento2.1, I'm able to load a product in CMS page using: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Catalog\Model\Product')-&...
6
votes
1answer
2k views

Magento 2: Get WYSIWYG editor's data in frontend?

I add wysiwyng editor in admin Ui form. <field name="content"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="...
3
votes
1answer
1k views

How to create a page that show all brands magento 2

I download module Ves_Brand ; i want to create a page that show all brands some ideas please! i know that i have to create a module and controller to show page but what i have to do inside that. ...
2
votes
3answers
3k views

Magento 2.2.2 how to check if current page is a CMS page in .phtml file?

I am using the following code to check if the current page is Product detail page: $objectManagerCms = \Magento\Framework\App\ObjectManager::getInstance(); $registry = $objectManagerCms->get('...
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
1answer
393 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::...
0
votes
1answer
974 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 > ...