Reply 350534 to: Custom CSS not loaded after changing language

Avatar: Tony Rodriguez
Tony Rodriguez
Support staff
March 20, 2023 at 05:27

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.

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.