How to handle anchor links when using multiple languages
-
We use WPML to translata string literals in the files and this works good.
We have flags at the top right that we can select to change langauges and this works good accept for some links that I come back to.We have the following languages that can be choosen English, Swedish, Spanish and Polish.
Now to our problem with links. When we have a link like this one below and click on it it will always open the english version even if we have chosen for example spanish.
<?php echo __(“Our Offer”, ‘dise’); ?>So the problem is that the href is not changed to href=”es/our-offer/”
So I wonder how can I solve this?
//Tony
- The topic ‘How to handle anchor links when using multiple languages’ is closed to new replies.