Language switcher fails with Theme: Story by Pexeto
-
Latest versions of WordPress, theme and polylang. Clean install without any other plugins installed or activated.
Polylang works fine with twenty-sixteen theme, but when I activate Story the language switcher only redirects to whatever page is listed as front-page. And then switches between the translations of that page.
By printing the array with pll_the_languages(array(‘raw’=>1)) before the header I can see that the function can find a translation with the twenty-sixteen active. But it fails to find it with the Story theme active [no_translation] => 1.
Theme support advised to inform here for a solution.
please help
here are the arrays with the same pages with different themes:
story
Array ( [en] => Array ( [id] => 2 [slug] => en [locale] => en-US [name] => English [url] => https://dev5.###.nl/en/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/us.png [current_lang] => 1 [no_translation] => 1 [classes] => Array ( [0] => lang-item [1] => lang-item-2 [2] => lang-item-en [3] => current-lang [4] => no-translation ) ) [nl] => Array ( [id] => 5 [slug] => nl [locale] => nl-NL [name] => Nederlands [url] => https://dev5.###.nl/nl/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/nl.png [current_lang] => [no_translation] => 1 [classes] => Array ( [0] => lang-item [1] => lang-item-5 [2] => lang-item-nl [3] => no-translation ) ) )
Array ( [en] => Array ( [id] => 2 [slug] => en [locale] => en-US [name] => English [url] => https://dev5.###.nl/en/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/us.png [current_lang] => [no_translation] => 1 [classes] => Array ( [0] => lang-item [1] => lang-item-2 [2] => lang-item-en [3] => no-translation ) ) [nl] => Array ( [id] => 5 [slug] => nl [locale] => nl-NL [name] => Nederlands [url] => https://dev5.###.nl/nl/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/nl.png [current_lang] => 1 [no_translation] => 1 [classes] => Array ( [0] => lang-item [1] => lang-item-5 [2] => lang-item-nl [3] => current-lang [4] => no-translation ) ) )2016
Array ( [en] => Array ( [id] => 2 [slug] => en [locale] => en-US [name] => English [url] => https://dev5.###.nl/en/contact-en/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/us.png [current_lang] => 1 [no_translation] => [classes] => Array ( [0] => lang-item [1] => lang-item-2 [2] => lang-item-en [3] => current-lang ) ) [nl] => Array ( [id] => 5 [slug] => nl [locale] => nl-NL [name] => Nederlands [url] => https://dev5.###.nl/nl/contact-nl/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/nl.png [current_lang] => [no_translation] => [classes] => Array ( [0] => lang-item [1] => lang-item-5 [2] => lang-item-nl ) ) )
Array ( [en] => Array ( [id] => 2 [slug] => en [locale] => en-US [name] => English [url] => https://dev5.###.nl/en/contact-en/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/us.png [current_lang] => [no_translation] => [classes] => Array ( [0] => lang-item [1] => lang-item-2 [2] => lang-item-en ) ) [nl] => Array ( [id] => 5 [slug] => nl [locale] => nl-NL [name] => Nederlands [url] => https://dev5.###.nl/nl/contact-nl/ [flag] => https://dev5.###.nl/wp-content/plugins/polylang/flags/nl.png [current_lang] => 1 [no_translation] => [classes] => Array ( [0] => lang-item [1] => lang-item-5 [2] => lang-item-nl [3] => current-lang ) ) )
- The topic ‘Language switcher fails with Theme: Story by Pexeto’ is closed to new replies.