Magento Home Page Layout - magento

Why does my page.xml file not change the layout of the homepage?? It changes the layouts of the other pages, but not the homepage. Does the homepage have its own layout xml file??

Figured it out. You have to go to the admin panel -> CMS -> and change the layout for the homepage to match your layout.
For example:
Mine was not working b/c page.xml was using a single column layout whereas the homepage was using a two column layout. - it goofed it all up.
Just match the layouts.

Related

Magento 2.1 product view page

I'm working on magento 2.1 ..
If I add content to product see picture ---> Click for photo
How can I change product view page?
Where is the phtml file?
Magento 2 no longer uses a formal view.phtml file for the product view. It is all controlled with XML to load lots of individual template files.
You will find the layout in;
/app/design/frontend/[theme maker]/[theme name]/Magento_Catalog/layout/catalog_product_view.xml
If your theme is using a base theme as a fallback, for example the Magento/Blank theme, copy the file from that theme to your own theme's path.

Magento, how to change home page?

I see that you can set a cms home page at "Default Pages" at admin panel (system/configuration/web) but I want a whole template including [html][head][body] tags to be shown, is this possible?
I can't do it via (CMS/Pages) as it deletes/modifies the code.. Even when I set it on "empty" don't really understand it..
Help would be much appreciated, cheers!
The file that you want is the layout file. If you need to add new layout of your home page then you can make a new layout file using following link
http://rakeshwebdev.wordpress.com/2014/02/13/add-new-custom-page-layout-in-magento-1-7/
Then after making layout while creating CMS Page go to layout section and choose your created layout. Then your home page will have what you want.
Note: By default header, footer all these are kept in different file and called from the 1column.phtml etc. So it will be always better to keep it that way only. As we always should follow Magento programming methodology.

Magento: layouts not appearing in CMS page dropdown

I just installed the Bootstrap template into my Magento install. I uploaded the files, went to System > Design and added the design change. The frontend of my site now displays the theme, but when I go to CMS > Pages and select a page, the Layout dropdown still shows the default/default layouts, not the ones as defined in app/design/frontend/bootstrap/default/layout/page.xml
Any ideas why they are not appearing? Thanks!
It's because Page.xml doesn't define the CMS page layouts for that drop down menu. You can find more information on it here;
magento: remove page layouts
This Inchoo post is a good way to add your own CMS page layout types via a super simple module (one of the answers in the above link takes a similar approach);
http://inchoo.net/ecommerce/magento/custom-cms-page-layout/

How to change the appearance location of top menu in only home page magento

I want to change the appearance location of top menu in only home page. The menus right now appear at the top after the logo image.
But I want to change them to appear any where else on home page only, on rest of pages the top menu should remain as it is now.
How can I do this?
Thanks
in the home page's cms editor, tab "design", textarea "layout update xml", put:
<reference name="header">
<action method="setTemplate"><template>page/html/header_bis.phtml</template></action>
</reference>
changing the path to the template phtml file you wanna use.
HTH
The CMS page for your homepage can be given its own theme/design settings.
Make a new theme with the navigation blocks that you need to change, XML and .phtml files that need the changes, not everything in the system.
Set your homepage to use the new theme, it should default to the existing theme for pieces that it cannot find in the homepage theme files, e.g. the footer .phtml etc.

Magento - Dynamic content in left panel of cms pages

I am using Magento 1.4.1.1 to build an online shop for my client, where he wants to have a left-side menu for some cms pages. The menu has the following characteristics:
The links in the menu are themselves cms pages.
The menu itself shall be a cms page.
The links in menu will be based on what cms page has been requested.
Create a static CMS block. Use as many blocks as you like, a block can include other blocks with the code shown at the bottom of that link.
Include them in each CMS page's XML layout.

Resources