Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 3 voices.

Last updated by Ricardo Alday 2 years, 1 month ago.

Assigned support staff: Ricardo Alday.

Author Posts
September 10, 2018 at 7:34 am #2718956


Hello, I don´t find anything when I searched on your forum or Google.
I just want to have shop functionality in Swedish language but hide the "Cart" and the "Add to Cart" functionality for english visiors when you change the language.

How do I solve this?

September 11, 2018 at 2:14 pm #2724073

Lucas Bustamante


You can use a CSS Lang selector to achieve this. hidden link


html:lang(en-US) .add-to-cart {
    display: none;

Let me know if this works for you.

Best regards,

September 12, 2018 at 6:31 am #2726156


Hello, this does not work at all unfortunly... what can it be?

September 12, 2018 at 3:49 pm #2728156

Ricardo Alday


It looks like you got it working by adding this code:

form.cart:lang(en-US) {
	display:none !important;

.xoo-wsc-basket:lang(en-US) {
    display: none !important;

.woocommerce .price:lang(en-US) {
    display: none !important;

Is that correct?

The topic ‘[Closed] Hide shopping functionality on other languages’ is closed to new replies.