Tagged: masonry blog, Tags
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
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
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