Title: Custom css for specific language
Last modified: November 30, 2016

---

# Custom css for specific language

 *  [zkagen](https://wordpress.org/support/users/zkagen/)
 * (@zkagen)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-css-for-specific-language/)
 * Hi,
    I have a website with polylang and woocommerce. I want to hide woocommerce
   on one of the languages. I am using woocommerce storefront theme, which shows
   the basket in the main menu. I want to hide the woocommerce basket in the menu
   of a specific language, and had the idea to do it with custom css. Is it possible
   to use a css selector to target the css to a specific language? If not, any other
   suggestions on how to do this is highly appreciated. HC

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [leemon](https://wordpress.org/support/users/leemon/)
 * (@leemon)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-css-for-specific-language/#post-8512521)
 * You can try the `lang` attribute selector:
 *     ```
       html[lang="en"] .my-class {
           display: none;
       }
       ```
   
 *  Thread Starter [zkagen](https://wordpress.org/support/users/zkagen/)
 * (@zkagen)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-css-for-specific-language/#post-8514334)
 * Hi Leemon,
 * Thanks for the suggestion, but it does not work.
 * This works, but removes the cart for all laguages:
 *     ```
       @media screen and (min-width: 768px)
       {body.storefront-pro-active .site-header .site-header-cart {display: none;}}
       ```
   
 * This does not have any effect:
 *     ```
       @media screen and (min-width: 768px)
       {html[lang="en"] body.storefront-pro-active .site-header .site-header-cart {display: none;}}
       ```
   
    -  This reply was modified 9 years, 6 months ago by [zkagen](https://wordpress.org/support/users/zkagen/).
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-css-for-specific-language/#post-8514924)
 * Hi!
 * You can try this: [https://wordpress.org/support/topic/custom-css-for-specific-language/](https://wordpress.org/support/topic/custom-css-for-specific-language/)
   
   Or you can add a file such as en_US.css in your theme directory. It will be loaded
   only for en_US.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom css for specific language’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [polylang woocommerce](https://wordpress.org/support/topic-tag/polylang-woocommerce/)

 * 3 replies
 * 3 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/custom-css-for-specific-language/#post-8514924)
 * Status: not resolved