0

I am using the Aheadworks Blog layout and added my own container to it but somehow it doesn't show up in the widget layout options. I have tried adding it in the Magento_Theme layout/default.xml and it does work there.

Specific info:

  • The container (Blog Related Posts) doesn't show up in the lay-out update part of creating a widget.

app/design/Vendor/Theme/Aheadworks_Blog/layout/aw_blog_post_view.xml:

<?xml version="1.0"?><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
    <remove src="Aheadworks_Blog::css/styles.css"/>
    <remove src="Aheadworks_Blog::css/slider.css"/>
</head>
<body>
    <referenceContainer name="columns" htmlClass="columns row mt-05">
        <container name="blog.related.posts" htmlTag="section"
                   htmlClass="col-12 blogs py-3 py-md-4 order-lg-3" after="-" label="Blog Related Posts">
        </container>
    </referenceContainer>
    <referenceContainer name="div.sidebar.wrapper" htmlClass="col-lg-3 d-none d-lg-block"/>
</body>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.