Home page reverts to default language
-
Hello there,
I’m having issues with my home page reverting back to the default language.For example, I can translate the home page when the site loads, then navigate to internal pages, but when I go back to the home page it reverts back to English but still has the /ko slug after the URL.
I did follow this forum’s ticket to fix a #TRPLINKPROCESSED issue but I’m wondering if it’s now causing this latest bug.
Here’s what I have in the plugin PHP file for reference.
// Start writing code after this line!
add_filter( ‘trp_force_custom_links’, ‘trpc_ignore_url’, 10, 4 ); function trpc_ignore_url( $translated_url, $url, $language, $a_href ){ $link_to_ignore = 'https://www.ahskorea.com/'; // url to ignore. if ( strpos( $url, $link_to_ignore) !== false ){ return $url; } return $translated_url; }
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Home page reverts to default language’ is closed to new replies.