How to Change Layout ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi

I have quite confused with my website that how to change my nopCommerce website layout with using a nopCommerce theme?

Welcome All Suggestions
Thank You
11 years ago
Hi,

For example, Index.cshtml has the following lines:
@ {
     Layout = "~ / Views / Shared / _ColumnsThree.cshtml";
}
If you want to reduce the number of columns on the main page, you can change the layout to _ColumnsTwo.cshtml or _ColumnsOne.cshtml.
Just three layout, but you can create your own or modify existing ones.
10 years ago
Mariann wrote:
Hi,

For example, Index.cshtml has the following lines:
@ {
     Layout = "~ / Views / Shared / _ColumnsThree.cshtml";
}
If you want to reduce the number of columns on the main page, you can change the layout to _ColumnsTwo.cshtml or _ColumnsOne.cshtml.
Just three layout, but you can create your own or modify existing ones.


Hi Mariann,

Please let me know where is Index.cshtml  in source code?
Thanks
10 years ago
Hi,

All front-end layouts are in: Presentation\Nop.Web\Views\

in particolare index.cshtml is in: Presentation\Nop.Web\Views\Home

if you have a theme the layouts are in: Presentation\Nop.Web\Themes\DefaultClean\Views


On server side the layout are in "\views\" or "\Themes\DefaultClean\Views" folder
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.