I have this code here,

 <block class="Magento\Store\Block\Switcher" name="store.settings.language" template="switch/languages.phtml">
  <argument name="id_modifier" xsi:type="string">nav</argument>

I want to disable this but it looks different from simply just adding,

<referenceBlock name="store_language" remove="true"/>

how do disable this from showing up on the website in the header? I'm not sure where to add referenceBlock

3 Answers 3


You need to add below code to :


<referenceBlock name="store_language" remove="true"/>

Run Command to clear cache : php bin/magento cache:clean

<referenceBlock name="store_language" remove="true"/>

Please clear cache and check this will work.


you can remove this from your backend don't need to customize your code.

first, go to your adminhtml->stores->settings->All Stores

now open your store views and set status "disable".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.