Magento 2.3 – How to Edit Header Content of a Custom Theme

magento2magento2.3magento2.3.0

Please could someone help me out!

I want to edit the header content to either remove or hide the following sections:

-Compare
-The Store Switcher (ELLYANA STORE)
-The Language Selector (ELLYANA_EN ENGLISH)

I use a custom theme: Fastest Magento 2 Theme.

Thank you.

Relevant Screenshot

Best Answer

app/design/frontend/Codazon/fastest_grocery_gourmet/Magento_Theme/layout/default.xml

<body>
    <referenceBlock name="store_language" remove="true"/> // To remove store language 
    <referenceBlock name="store_switcher" remove="true"/> // To remove store switcher 
</body>

For the compare link, go to Stores>configuration> theme options> Product compare > Show compare page link in TopLinks area > No

Codazon doc

Related Topic