WPML problems
-
Hi,
I am having two problems between WPML and your plugin.
First, the canonical tag between the pages /home/ and /en/home/ had a problem.
It was always showing the default version (fr), even on the EN page. Maybe because it’s the same slug ?I quick fixed it using :
add_filter('the_seo_framework_rel_canonical_output', function ($url, $id) { if (basename(get_permalink()) == "home" and "en" == apply_filters('wpml_current_language', NULL)) { $url = home_url() . 'home'; } return $url; }, 10, 2);
But it’s not great…
Second problem with the schema.org structured data. It seems it’s always showing the default language (here it’s FR), even on EN pages.
Do you know how I could fix it?
Kind regards
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WPML problems’ is closed to new replies.