Disable Store Switcher in Magento 2 using Pearl Theme
AnsweredAnyone successfully suppress the store switcher in the header area in a multi store environment?
I am editing the wp_custom.less file in the app/design/frontend/Pearl/weltpixel_custom/web/css/source folder. Clearing the cache then testing but the store switcher drop down still appears.
Contents of wp_custom.less
.weltpixellighting {
color: black;
}
.switcher select
{
display:none
}
.switcher-store-trigger select
{
display:none
}
.switcher-store select
{
display:none
}
.switcher store switcher-store
{
display:none
}
-Casey
-
Official comment
Try adding below code to wp_custom.less
.page-header .switcher .options {
display:none;
}
- Make sure you are using the child theme for this store-view or the changes will not be applied.
- Mage sure to regenerate LESS/CSS for this store-view or the changes will not be applied. Here is a short article on how you can do that. https://support.weltpixel.com/hc/en-us/articles/115003635593-Pearl-Theme-styles-not-applied-or-design-issues-after-switching-Magento-to-Production-Mode-
Comment actions
Please sign in to leave a comment.
Comments
1 comment