Bilingual Links missing
-
Hi Yannick. Ran your update and the English and Francais links are missing to allow the user to switch over to the different language?
Site is http://gbgh.on.ca. Before the update, there was a link for Francais in the top right-corner to allow the user to visit the french version of this page. Same for all of the other pages.
Now they are all missing? Thoughts?
This is the code I have in my header:
<?php // News if (is_archive()) { $newsURL = str_replace("/category/", "/fr/category/", "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"); echo "<a href='$newsURL'>Français</a>"; // Search results //} elseif (is_search()) { // $searchURL = str_replace("/?", "/fr/?", "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"); // echo "<a href='$searchURL'>Français</a>"; // Otherwise: } else { // Bilingual Linker for French template if ( function_exists( 'OutputBilingualLink' ) ) : echo OutputBilingualLink( $post->ID, 'Français', '', ''); endif; } ?>
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
The topic ‘Bilingual Links missing’ is closed to new replies.