Skip to content

How to Change The Layout For All Magento 2 Blog Pages? #617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MagefanCustomer opened this issue Oct 9, 2024 · 1 comment
Closed

How to Change The Layout For All Magento 2 Blog Pages? #617

MagefanCustomer opened this issue Oct 9, 2024 · 1 comment

Comments

@MagefanCustomer
Copy link

No description provided.

@magefan
Copy link
Owner

magefan commented Oct 9, 2024

If you use Magefan Blog Extension for Magento 2 and need to change the layout e.g. from "2 columns with a right sidebar" to "2 columns with a left sidebar" for all blog pages, please do next:

1. Create a file

app/design/ThemeVendor/themename/Magefan_Blog/layout/blog_default.xml

2. Add the code into it

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
</page>

3. Save the file and flush Magento 2 caches.

 

For the layout attribute you can use such values as:
 - 1column
 - 2columns-left
 - 2columns-right
 - 3columns

 

@magefan magefan closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants