Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #362781

    Hello,

    at our site http://www.openair-frauenfeld.ch/en/ the option to change the image size in the masonry blog by adding the tags “landscape” or “portrait” to the posts does not work. In the german Version of the site it does. Any Idea how to fix this, or what the problem could be?

    thank you

    Lino Dumont – Openair Frauenfeld

    #363160

    Hey Jack!

    Did you remember to add the tags to the translated posts as well? Can you send us a WordPress login so we can take a closer look?

    Best regards,
    Elliott

    #365250
    This reply has been marked as private.
    #365722

    Hi!

    Alrighty, if you navigate to Dashboard > Posts > Tags and view the slug for the english translation of your tags you’ll see that it says landscape-en and portrait-en. I think that’s where the problem is.

    I’m not sure what a good fix would be to get it compatible with WPML. I’ll add this to our bug list but for now try opening up /enfold/config-templatebuilder/avia-shortcodes/masonry-entries.php and find lines 673 – 674.

    if(in_array($tag_values['portrait'], $tags)) { $img_size .= ' av-portrait-img'; }
    if(in_array($tag_values['landscape'], $tags)){ $img_size .= ' av-landscape-img'; }
    

    And add this beneath them.

    if(in_array($tag_values['portrait-en'], $tags)) { $img_size .= ' av-portrait-img'; }
    if(in_array($tag_values['landscape-en'], $tags)){ $img_size .= ' av-landscape-img'; }
    

    Cheers!
    Elliott

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