Home Forums Porto Template Randomize the images that are returned on the masonry grid.

This topic contains 1 reply, has 2 voices, and was last updated by  Support2 7 months, 3 weeks ago. This post has been viewed 211 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10028195

    Dean
    Participant

    Hi,

    I’m looking at portfolio-masonry-2-columns.html
    and I’d like to randomize the images that are returned on the masonry grid.

    I’m assuming that I’d need to change
    data-plugin-options=”{‘layoutMode’: ‘masonry’, ‘filter’: ‘*’}”>

    however I’m struggling to figure it out. Could you assist please?

    Best wishes,
    Dean


    #10028196

    Support2
    Keymaster

    Hello, thanks for your purchase.

    To randomize you need the option sortBy:

    data-plugin-options="{'layoutMode': 'masonry', 'filter': '*', 'sortBy': 'random'}"

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)