Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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,
    Bram

    #865777

    Hey bramvandenbulcke,

    Here are some threads to consider:

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #865841

    Thanks! 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;
    }
    #866467

    Hi bramvandenbulcke,

    Glad you got it working for you! :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.