Hey,
I usually don’t use the built in language switcher, but instead, make my own with HTML, so it’s more customizable.
Basically, you can do this in your header.php file:
<a href="/fr/">FR</a> / <a href="/en/">EN</a>
And modify it by your own needs.
You can even add some custom CSS for your active language if you want to.
Thanks ritmanis. Your solution works, however it goes back to the homepage (/en or /fr) rather than switching the existing page to its equivalent translated content.
I haven’t tested it myself, but this should work:
<a href="/fr/<?php echo get_permalink(); ?>">FR</a> / <a href="/en/<?php echo get_permalink(); ?>">EN</a>
ritmanis, thanks again for your time! I just tried it, it appears side by side as you pointed out, however the URL it calls is the full permalink followed by /fr + full permalink again, therefore it opens a 404.
I feel that we are close!!! 🙂
thks!
Hi,
Did you manage to get where you wanted? If so, can you share the solution?
Thanks!
I wasn’t able to do it myself so I left as is.