Custom CSS not loaded after changing language

This topic has 3 replies, 2 voices, and was last updated 1 years, 8 months ago ago by thorth219

  • Avatar: thorth219
    thorth219
    Participant
    March 19, 2023 at 20:09

    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?

    2 Answers
    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.

    Avatar: thorth219
    thorth219
    Participant
    March 20, 2023 at 15:32

    okay i’ll try it

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Custom CSS not loaded after changing language’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.