Ok, it hides them well, but I want to create the same two buttons for the English version, how can I add a “class” to the button to do that?
Or do you have another solution?
You can create four buttons. Two for English and two for French then I will share with you CSS code to hide them and only display two buttons at a time on respective language websites.
Solution for this topic
Please try using the below CSS code and remove the previously shared CSS code.
html[lang="en-GB"] .sh-header-builder-main-element-button-container a:nth-child(1),
html[lang="en-GB"] .sh-header-builder-main-element-button-container a:nth-child(2) {
display: none !important;
}
html[lang="fr-FR"] .sh-header-builder-main-element-button-container a:nth-child(3),
html[lang="fr-FR"] .sh-header-builder-main-element-button-container a:nth-child(4) {
display: none !important;
}
It’s great, everything works!
Thanks a lot!
Have a nice day !
You are most welcome here 🙂
Have a fantastic day
Popular choice Professional Developers At Your Fingertips! If you need services beyond standard support, we've got your back!
Let's get started
Services we offer: Graphic work / visualizations Full WordPress development and design
We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.Got it