cancel
Showing results for 
Search instead for 
Did you mean: 

Change product page layout to 2column right

Change product page layout to 2column right

Hello,

 

 

I would like to change my product detail page layout to 2column-right layout. I copied the

 

/vendor/magento/module-catalog/view/frontend/layout//vendor/magento/module-catalog/view/frontend/layout

 

to

 

/app/design/frontend/Magento/luma/Magento_Catalog/layout/catalog_product_view.xml

 

and changed '1column' to '2columns-right'. But it did not even take the theme file and did not work. Can anyone there to help me on this?

Thanks

 

9 REPLIES 9

Re: Change product page layout to 2column right

@anithavtrio,

have you create any custom theme for your site?

If you are using default theme, Check which default theme you are using Luma or Blank.

 

By Default, Its best to create your own custom theme and override your core file into your cusotm theme.

 

Thanks.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Change product page layout to 2column right

Hello Rakesh,

 

Thanks for the quick reply. Yes, I am using the default theme luma

 

Thanks,

Anitha

Re: Change product page layout to 2column right

Hello,

 

My actual requirement is to add a sidebar in the right side of the product page. I was able to add the sidebar in all other pages. I need it in the product page also. But I am not able to add the sidebar there.

 

Thanks,

Anitha

Re: Change product page layout to 2column right

@anithavtrio,

Have you set layout using Luma theme for all other pages?

or Using Direct admin panel.

 

You need to create simple custom theme for your requirement and after creating successfull theme you need to override as per above path. Your issue will resolved using your custom theme.

 

Thanks.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Change product page layout to 2column right

Hello Rakesh,

 

For all other pages, we have added a sidebar extension to accomplish the sidebar.

 

And we have changed the layout to '2column-right' directly in the layout file.

 

You mean I need to add a custom theme and override the luma files? Or I need to create custom theme instead of luma?

 

Thanks,

Anitha

Re: Change product page layout to 2column right

You need to create custom theme based on parent theme luma or blank.

You dont need to copy all files from parent theme, You need to keep all required files for your site and You can get reference from here,

http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html

 

if issue solved, Click Kudos/Accept as solutions.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Change product page layout to 2column right

Hello Rakesh,

 

Thank you very much.

Let me try.

 

Thanks,

Anitha

Re: Change product page layout to 2column right

Hello Rakesh,

 

We have created a dropdown menu in the top menu instead to create the right sidebar and hence solved this issue. Thank you very much for your time.

 

Thanks,

Anitha

Re: Change product page layout to 2column right

Hello Rakesh,

 

http://magefoo.com/adding-static-links-to-navigation-menu-in-magento-2/

 

We have used this one to create non-category links in the top menu. Now we need to add a icon ('hamburger menu' icon) before that 'Home' link. Can you tell how we can accomplish this.

 

Thanks,

Anitha