Hi, how can I make sure the masonry element is aligned correctly to the center on both mobile and desktop?
Hey DROR,
Thank you for using Enfold.
Please adjust the default width of the masonry container.
#top .container .av-masonry.av-large-gap {
width: 100%;
}
Default width value is “calc(100% + 15px)”.
Best regards,
Ismael
Thanks Ismael, how can I make the masonry element to be RTL so the last item will be shown on the right instead of on the left?
Hi,
This is possible but you have to modify the js > shortcodes.js file, look for the “avia_masonry” > “apply_masonry” function around line 1307.
var filters = selector ? {filter: '.'+selector} : {};
Below, add this code.
filters['isOriginLeft'] = false;
Please remove browser cache or do a hard refresh before you check the page.
Best regards,
Ismael
Great, thanks. You should make that work on it’s own when using the theme on an RTL language :)