Skip to content

Custom Theme default.xml not working in 2.2 #12830

@swleighton

Description

@swleighton

Preconditions

  1. Magento 2.2
  2. PHP 7.0.25

Steps to reproduce

  1. Downloaded Magento 2.2
  2. Copied existing theme into /app/design/frontend/ so that the default.xml file is located at
    /app/design/frontend/ VENDOR/THEME_NAME/Magento_Theme/layout/
  3. Set theme in admin

Expected result

  1. The cart/menu move as per the layout blocks in the file

Actual result

  1. No changes from default.xml are being included

`

header.delivery.banner
    <referenceContainer name="header.panel">
        <block class="Magento\Framework\View\Element\Html\Links" name="header.links">
            <arguments>
                <argument name="css_class" xsi:type="string">header links</argument>
            </arguments>
            <block class="Magento\Customer\Block\Account\Customer" name="customer" template="Magento_Customer::account/customer.phtml" before="-"/>
            <block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link-login" template="Magento_Customer::account/link/authorization.phtml">
                <arguments>
                    <argument name="sortOrder" xsi:type="number">10</argument>
                </arguments>
            </block>
        </block>

    </referenceContainer>
    <referenceBlock name="logo">
        <arguments>
            <argument name="logo_img_width" xsi:type="number">250</argument>
            <argument name="logo_img_height" xsi:type="number">151</argument>
        </arguments>
    </referenceBlock>
    <referenceContainer name="footer">
        <block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
        <block class="Magento\Cms\Block\Block" name="footer.contact" after="footer.links">
          <arguments>
              <argument name="block_id" xsi:type="string">footer.contact.details</argument>
          </arguments>
        </block>
        <container name="social.footer" htmlClass="social-icon-links social-icon-links--footer" htmlTag="div" after="footer.contact">
            <block class="Magento\Framework\View\Element\Template" name="social.links2" before="-" template="Magento_Theme::social-links.phtml">
            </block>
        </container>
        <block class="Magento\Cms\Block\Block" name="paymentcards.block" after="social.footer">
          <arguments>
              <argument name="block_id" xsi:type="string">paymentcards.image</argument>
          </arguments>
        </block>
    </referenceContainer>
    <referenceBlock name="catalog.topnav">
              <block class="IBD\NavigationLink\Block\Links\Link" name="newpage" after="-">
                <arguments>
                  <argument name="label" xsi:type="string" translate="false">Contact Us</argument>
                  <argument name="path" xsi:type="string" translate="false">contact</argument>
                  <argument name="listcss" xsi:type="string">level0</argument>
                  <argument name="css" xsi:type="string">new-test level-top</argument>
                </arguments>
              </block>
        </referenceBlock>
        <referenceBlock name="footer_links">
          <block class="Magento\Framework\View\Element\Html\Link\Current" name="delivery-and-returns-link" before="contact-us-link">
              <arguments>
                  <argument name="label" xsi:type="string" translate="true">Delivery and Returns</argument>
                  <argument name="path" xsi:type="string">delivery-and-returns</argument>
              </arguments>
          </block>
        </referenceBlock>
        <referenceContainer name="store.menu">
          <container name="social.menuitem" htmlClass="social-icon-links social-icon-links--footer" htmlTag="div" after="catalog.topnav">
              <block class="Magento\Framework\View\Element\Template" name="social.links3" template="Magento_Theme::social-links.phtml">
              </block>
          </container>
        </referenceContainer>

    <referenceBlock name="search-term-popular-link" remove="true"/>
    <referenceBlock name="catalog-search-advanced-link" remove="true"/>
    <referenceBlock name="report.bugs" remove="true"/>
    <move element="copyright" destination="before.body.end"/>
    <move element="navigation.sections" destination="header-wrapper" />

    <referenceBlock name="product.info.review" remove="true" />
    <referenceBlock name="reviews.tab" remove="true" />

    <referenceBlock name="catalog.compare.sidebar" remove="true"/>
    <referenceBlock name="catalog.compare.link" remove="true"/>
    <referenceBlock name="item.addto.compare" remove="true" />

    <move element="top.search" destination="header.panel" before="header.links"/>
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions