0

I can't seem to get external CSS file to load on a specific Magento 2.2.5 CMS page. My current XML layout update code is this

<body>
<attribute name="class" value="stacked"/>
<referenceContainer name="sidebar.main">
 <block class="Magento\Cms\Block\Block" name="cms_page_navigation">
                    <arguments>
<argument name="block_id" xsi:type="string">wine_experience_navigation</argument>
</arguments>
                </block>        
 <block class="Magento\Cms\Block\Block" name="cms_page_sidebar_bottom">
                    <arguments>
<argument name="block_id" xsi:type="string">inside_hall_sidebar_bottom</argument>
</arguments>
                </block>        
</referenceContainer>           
 <referenceContainer name="page.cms.title">
                <block class="Magento\Cms\Block\Block" name="cms_page_title">
                    <arguments>
<argument name="block_id" xsi:type="string">cab_cookoff_banner</argument>
</arguments>
                </block>        
            </referenceContainer>
</body>

I need to add a link to this css file into here without it erroring out.

I tried just adding this without my existing XML code, but it throw errors

<body>
<attribute name="class" value="stacked"/>
<referenceContainer name="head">
        <action method="addLinkRel">
            <rel>stylesheet</rel>
            <href>//s3-us-west-1.amazonaws.com/hallwines/soldout.css</href>
        </action>
    </referenceContainer>
</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.