Magento 2 - Remove Currency Switcher
-
29-09-2020 - |
Question
I'm trying to remove the currency switcher from the header in Magento 2 with little luck. I've tried this in my theme's default.xml file
<referenceBlock name="store.settings.currency" remove="true"/>
But that doesn't seem to do anything. Plan B is to hide it with CSS but I feel like I should be able to remove it with a layout update.
Solution
Block name to remove currency should be "currency", please try:
<referenceBlock name="currency" remove="true"/>
OTHER TIPS
To remove currency from the website totally - do not forget about the mobile version, as there is another template which is responsible for rendering it inside "hamburger". So use both variants (from the question too)
<referenceBlock name="currency" remove="true" />
<referenceBlock name="store.settings.currency" remove="true" />
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange