I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.
My top links (above the logo) are:
- Compare Products
- Default welcome msg!
- My Account
- My Wish List
- Create an Account
- Sign In
I need to know how, from my custom theme (I want to stay safe from the overwrites that occur when updating Magento), I could have only:
- My Cart
- My Wish List
- Sign In
In app/design/frontend/vendor/themename/Magento_Theme/layout/default.xml
I have changed:
<referenceBlock name="top.links">
<block class="Magento\Theme\Block\Html\Header" name="header" as="header" before="-">
<arguments>
<argument name="show_part" xsi:type="string">welcome</argument>
</arguments>
</block>
</referenceBlock>
into:
<referenceBlock name="top.links">
<block class="Magento\Theme\Block\Html\Header" name="header" as="header" before="-">
<arguments>
<argument name="show_part" xsi:type="string">welcome</argument>
</arguments>
</block>
<referenceBlock name="my-account-link" remove="true"/>
<referenceBlock name="compare-products-link" remove="true"/>
<referenceBlock name="wishlist_link" remove="true"/>
</referenceBlock>
With no effect.
How can I achieve this goal? Thank you!
php bin/magento cache:clean
?