This topic has 3 replies, 2 voices, and was last updated 1 years, 9 months ago ago by thorth219
Hi,
need help with my custom css.
I tried to hide shop toolbar by using this code
.filter-wrap div.filter-content {
display: none;
}
it worked fine when i’m using english as default language. Until, i turn the default language into bahasa indonesia suddenly the shop toolbar re-appeared. I’ve tried to add !important , yet no result.
i put the css code on child theme style.css file. Any help?
Hello, @thorth219,
Thank you for choosing XStore as your WooCommerce WordPress theme.
It sounds like you are having an issue with your custom CSS not working as expected when you switch the default language on your website.
One reason this might be happening is because your CSS selectors are language-specific, and when you switch to a different language, the selector is no longer targeting the correct element.
To fix this, you can try adding a language-specific class to your selector. For example:
.lang-en .filter-wrap div.filter-content {
display: none !important;
}
This will ensure that your CSS only targets the filter-content element when the website language is set to English. You can replace lang-en with the appropriate class for the language you are targeting.
If this doesn’t work, try using browser developer tools to inspect the elements and ensure that your CSS selector is targeting the correct element.
Alternatively, please share your site WP Admin URL and Credentials with us under the private content area of this topic, so that we will further look into it for you on your site and help you out.
Best Regards,
8Themes Team.
okay i’ll try it
Tagged: custom css, language, loaded, themes, woocommerce, wordpress
The issue related to '‘Custom CSS not loaded after changing language’' has been successfully resolved, and the topic is now closed for further responses