-
AuthorPosts
-
October 16, 2017 at 3:06 pm #864839
Hi,
I have a website in three languages (English, Dutch and French) and I’m using the WPML plugin.
Perfect Manual Masonry is working fine by using the ‘landscape’ and ‘portrait’ tags in English. But in the other languages, they are all square. I suppose the Enfold theme is looking for the slugs but the slugs have to be unique in each language.
This has been asked before, see https://kriesi.at/support/topic/masonry-blog-in-spanish-not-the-same-as-in-english/.
Is there a solution for this problem?
Regards,
BramOctober 18, 2017 at 4:09 pm #865777Hey bramvandenbulcke,
Here are some threads to consider:
If you need further assistance please let us know.
Best regards,
VictoriaOctober 18, 2017 at 5:24 pm #865841Thanks! It’s working in three languages now.
I had to check the names of the slugs in the other languages, add them for the other languages (I had to add them for the other languages, although you would expect these to be included automatically) and resave the pages.
I used this code:
add_filter('avf_ratio_check_by_tag_values', 'avf_ratio_check_by_tag_values_mod', 10, 1); function avf_ratio_check_by_tag_values_mod($tags) { $lang = ICL_LANGUAGE_CODE; if($lang == 'en') $tags = array('portrait' => 'portrait', 'landscape' => 'landscape'); if($lang == 'nl') $tags = array('portrait' => 'portrait-nl', 'landscape' => 'landscape-nl'); if($lang == 'fr') $tags = array('portrait' => 'portrait-fr', 'landscape' => 'landscape-fr'); return $tags; }October 19, 2017 at 9:33 pm #866467Hi bramvandenbulcke,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
