I'm trying to disable an image link when the site navigates out of the original language. Its wordpress and I'm using Polylang to translate. The site is in Portuguese, English, Deutsh and French. I have a widget that is located in a common wrap no matter the language. That widget shows images with links to a pop-up commanded with a plugin that uses a class (class="modal-link") can't disable that class because it will break links in other pages. I need the links to disable when switching to English/Deutsh/French.
The code in the widget is like this:
<a class="modal-link" href="http://moldetefa.com/wp2018/index.php/pt2020/">
<img border="0" alt="Centro2020" src="http://moldetefa.com/wp2018/wp-
content/uploads/2018/08/c2020.png"></a>
<a class="modal-link" href="http://moldetefa.com/wp2018/index.php/pt2020/">
<img border="0" alt="Portugal2020" src="http://moldetefa.com/wp2018/wp-
content/uploads/2018/08/pt_2020.png"></a>
<a class="modal-link" href="http://moldetefa.com/wp2018/index.php/pt2020/">
<img border="0" alt="FEDR" src="http://moldetefa.com/wp2018/wp-
content/uploads/2018/08/FEDR.png"></a>
This CSS works but I don't know how to call it just in a specific language
[href="http://moldetefa.com/wp2018/index.php/pt2020/"]{
pointer-events: none;
}
This CSS works for doing things under that language only, but I don't know how to write the code to disable that specific link.
:lang(en) {
}
Just done this and it worked ! :O
:lang(en) > [href="http://moldetefa.com/wp2018/index.php/pt2020/"]{
pointer-events: none;
}
Any thoughts? Thank's JF