Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #928774

    Hi, how can I make sure the masonry element is aligned correctly to the center on both mobile and desktop?

    #929708

    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

    #929829

    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?

    #931022

    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

    #931262

    Great, thanks. You should make that work on it’s own when using the theme on an RTL language :)

    #931849

    Hi,

    I think that option creates issues with the masonry bricks which is why it is disabled by default. Let us know if you encounter any issues with it. :)

    Best regards,
    Ismael

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