magefan / module-blog

Magento 2 Blog Extension is a solution that helps you to create a blog on Magento and manage posts,categories, tags, authors, and comments.
https://magefan.com/magento2-blog-extension
Other
263 stars 135 forks source link

How to change page layout 2colums-right at blog_default.xml to 1column #126

Closed taimaiduc closed 6 years ago

taimaiduc commented 6 years ago

How to change page layout 2colums-right at blog_default.xml to 1column. I want to remove sidebar by

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="blog.sidebar" remove="true" />
    </body>
</page>
magefan commented 6 years ago

@taimaiduc , try to copy blog_default.xml to your theme and then change 2columns-right to 1column

taimaiduc commented 6 years ago

It working. I have been put it on app\code\Vendor\Module

Can you explain why at app\code\Vendor\Module it not working?

magefan commented 6 years ago

Sorry, this issues section only for issues in blog extensions.

taimaiduc commented 6 years ago

@magefan thank you