I'm trying to add the header and footer to a template in an extension called iwd one page checkout.
Please note the solution posted here does not seem to have any effect:
Magento 2.2 IWD Onepage Checkout Issue
I've identified the layout file as:
magento\app\code\IWD\Opc\view\frontend\layout\onepage_index_index.xml
which contains
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
layout="checkout"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="checkout_index_index"/>
<head>
<css src="//fonts.googleapis.com/css?family=Open+Sans:400,400italic,700italic,700" src_type="url"/>
<css src="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" src_type="url"/>
</head>
<body>
<referenceBlock name="page.main.title" remove="true"/>
<referenceBlock name="iwd_opc_ga_ab" remove="true"/>
<referenceBlock name="checkout.root">
<action method="setTemplate">
<argument name="template" xsi:type="string">IWD_Opc::onepage.phtml</argument>
</action>
<block class="Magento\GiftMessage\Block\Cart\GiftOptions"
name="checkout.gift_options"
template="IWD_Opc::gift_options.phtml"
cacheable="false">
</block>
</referenceBlock>
<referenceContainer name="before.body.end">
<block class="Magento\Framework\View\Element\Template"
name="iwd.opc.popup"
template="IWD_Opc::popup.phtml">
</block>
</referenceContainer>
</body>
</page>
What I did was try to add the following line
<block class="Redgiant\Xstore\Block\Template" name="xstore_header" template="Magento_Theme::html/xstore_header.phtml" before="main.content"/>
from:
magento\app\design\frontend\Redgiant\xstore\Magento_Theme\page_layout\override\base\1column.xml
However, that has had no effect. I know editing the file onepage_index_index.xml does work as altering the includes in the head carry through.
I think it may be something to do with the class and template references but I'm not sure.
Any help would be really appreciated.
Many Thanks