Questions tagged [cms-pages]

Denotes questions related to CMS pages.

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

Magento 2 : Add Button to Existing Listing Component

I'm creating a custom module trying to add a custom button to CMS pages listing component. How do I add this. I'm using magento 2.2.
1
vote
1answer
446 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"> <...
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. ...
0
votes
0answers
35 views

How to checkout specific product from cms page magento 2?

I have a virtual product and want to add to the cart when clicking on a button which is on cms page. Customer must be redirected to checkout page after clicking on the button.
1
vote
0answers
59 views

Importing CMS pages from Homestead to Magento 2.0

We are using Magento 2.0. Our previous website was on Homestead CMS. We want to bring all the pages from homestead to Magento 2.0. Please help
0
votes
1answer
52 views

Magento 1.9 CMS Pages changing content format while saving

I am saving my HTML content in CMS pages of Magento 1.9.3.7. But It's changing the format of my HTML content and adding a slash when a doublequote found in the code. For example when I save below code:...
1
vote
1answer
638 views

Magento 2 : How to Remove Container Div From CMS Page

How to remove container block from cms page for particular layout. I have created new layout and apply on cms page but not able to customize it. Below my custom layout code: app/design/frontend/...
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 ...
0
votes
1answer
319 views

Magento 2 : CMS Pages/Blocks and Products Not Loading in Backend

I'm using Magento 2.2.2 with PHP 7.1.1, CentOS 7 and Nginx. Currently in developer mode, I am working normally in Windows 10 and hosts file changed to the server IP, locally. After pointing the ...
0
votes
1answer
2k views

How to redirect 404 error to specific url?

I've faced the problem: my seo-specialist asked me to redirect all 404 to same url (/404.html). Not to show content on noRoute page but redirect to this url. I've made changes in /app/code/core/Mage/...
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
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){ $...
3
votes
1answer
2k views

Magento 2 get CMS page url and output it to a html file

I have the following code in a html file. <div><span data-bind="i18n: 'insurance condition'"></span> <a href="https://example.com/index.php/sales-and-delivery-terms" target="...
1
vote
1answer
98 views

M1.9 Jquery issue in CMS page

In my Magento installation I have JQuery 1.10 already included but I need to have a newer version of it. I added the latest version of JQery via the xml update tab in the cms page and I wrote my ...
2
votes
3answers
4k 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
0answers
30 views

What is the difference between adding CMS Static Block into CMS Page Content & Design?

What is the difference between adding CMS Static Block into CMS Page -> Content and CMS Page -> Design?
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?
1
vote
1answer
474 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?
2
votes
2answers
917 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, ...
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.
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 ...
1
vote
0answers
20 views

Add product manual search

I need to add an option for searching product manuals. I have some pdf files as manuals which stored in folder named as it's manufacturer. Ex: manufacturer is ABC and manuals are abc-prmanu1.pdf, abc-...
0
votes
1answer
274 views

How to retrieve cms block?

Deleted row from Content>Blocks then I try to add it again from previous backup but it doesn't render on the frontend. How can I solve it? Thanks
0
votes
1answer
646 views

Display best selling products in home page [duplicate]

How to display best selling products on the home page?
0
votes
2answers
798 views

Call custom_module phtml file in cms page

How to call a phtml file in cms page. my phtml file is located under the path \app\code\Testing\Helloworld\view\frontend\templates\helloworld.phtml.Thank you in advance
0
votes
1answer
391 views

How to remove Logo and Menu from CMS Page

I am building a page in Magento 2.1.9 from which I would like to remove the logo and menu. Can this be accomplished through Layout Update XML? Below is a sample (blank) page. Thanks in advance! http:...
1
vote
1answer
89 views

How to display catagories in cms page magento 2.2 [closed]

How to display all catagories in grid format in cms page magento 2.2 ?
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 "...
0
votes
1answer
482 views

Configuring Page Hierarchy

Reading the M2 docs I can see there is meant to be Page Hierarchy However I can't If I go Stores->Settings->Configuration->General->Content Management I don't see any mention of Configuring Page ...
0
votes
1answer
689 views

Magento 2 : on main sever We're sorry, an error has occurred while generating this email

my code is running perfectly on local host but when i am uploading on server after running its showing This above error We're sorry, an error has occurred while generating this email. my block ...
0
votes
1answer
143 views

Magento 2: put all CMS pages in the top bar

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. By default, it seems, Magento displays links to the product categories (and subcategories) in the ...
1
vote
0answers
23 views

CMS Page Not Loading Automatically on backend

On our magento backend, we have encountered an unusual issue. When we try to open a CMS page via CMS>>Pages & then select(click) page name. Now as there are two parts Left Side(Menu) & Right ...
0
votes
1answer
94 views

Pass action method to inline block on CMS page in Magento

I'm trying to convert <reference name="content"> <block type="ibanners/view" name="ibanners.home" as="home"> <action method="setGroupCode"><code>home</code></...
3
votes
1answer
4k views

Magento 2-How to link image to category page through cms page?

I have a static page of shop. On this page there are different images. I want to link these images to the specific categories types. For example i have an image of men's clothes. Now i have also a ...
0
votes
1answer
35 views

Magento2 : I am seeing same block code i have added in CMS page

I am trying to insert phtml block in home page CMS in Magento 2. But I am seeing the same block code I have added in CMS backend in front end. {{block type="template" template="page/test.phtml"}} ...
0
votes
1answer
456 views

Call third party module block in CMS page in magento 2

Is there any way to insert custom block in CMS page in Magento 2.2 alike inserting CMS block in CMS page?
0
votes
1answer
131 views

Magento 1.9 - Password or admin only login store - not editing htaccess

Is there a way to make a store accessible (or maybe specific cms pages) by admin only or with a password? Need to set it up so that clients can do this for future stores while in testing mode -...
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
0
votes
1answer
105 views

Magento 2: Set cms home page using setup script

I am writing setup script for the theme configuration but stuck at how to set default cms home page for this theme. Here is the script that is setting my theme as default theme. Setup script is ...
1
vote
1answer
322 views

Add css to cms page doesn't work

I want to add css from module to my custom cms page like this: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:...
1
vote
1answer
510 views

Magento 2: How to assign a category to CMS page?

How to redirect a category page to CMS page in Magento 2? I have tried several methods by using URL-rewrite but these methods work only on Magento 1.
2
votes
2answers
2k views

Magento 2: How to Redirect from Observer to CMS Page

I want to restrict some products from add to cart and redirect to a cms page on Add to Cart action. I have used 'controller_action_predispatch_checkout_cart_add' event. The code restrict the add to ...
1
vote
1answer
563 views

Magento 2 Image upload on CMS page

<field name="page_image"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="dataType" xsi:type="string">image&...
2
votes
1answer
349 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 ...
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\...
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.
1
vote
0answers
47 views

Magento 2.1 loop through CMS pages

I created a custom attribute in the ui_components of the cms_pages. The custom attributes shows up in the admin section, saves to the database and can be seen on the front side of the website. The ...
1
vote
0answers
368 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’...
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 > ...
0
votes
1answer
401 views

Is there a way to restore the pages, blogs and widgets I have removed from Magento 2?

Is there a way to restore the pages, blogs and widgets I have removed from Magento 2? I want the contact us, cookies and other pages back. Do I need to do it manually?