Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #213696

    Is it possible to add something to the functions.php to change this setting?

    I have a ton of items and would love to make it do infinite scroll rather than the ‘load more’ button.

    http://subterranea.net/vusa2/vanities/

    Thanks!

    #213717

    Hey hughjames!

    Edit config-templatebuilder > avia-shortcodes > masonry_gallery.php, find this code on line 63:

    "subtype" => AviaHtmlHelper::number_array(1,100,1, array('All'=>'-1'))),

    Replace 100 with 1000 or more.

    "subtype" => AviaHtmlHelper::number_array(1,1000,1, array('All'=>'-1'))),

    Configure the masonry gallery then set the “Image Number” to 1000. Disable the “Pagination” option.

    Regards,
    Ismael

    #213735

    Thank you!

    Your support is incredible. Really appreciate it.

    Here’s a dumb-ish question. If I put this in my child theme, do I need to keep the same file structure, or can I throw it in the root?

    #213744

    Weird. That didn’t work (it didn’t change the option in the control panel when I put it in either the theme or child theme.

    But I realized you could key in 1000 in the page data in the database (_aviaLayoutBuilderCleanData) seems to be the one it uses.

    That might work better, because there’s no need to modify the theme.

    Thanks for your help!

    #213767

    Hi!

    You can overwrite all parent theme shortcodes or elements with the child theme – see: https://kriesi.at/support/topic/have-easyslider-fill-up-entire-column-with-no-padding-or-margins/#post-205281

    Best regards,
    Peter

    #1097307

    I followed Ismael’s suggestion and edited the masonry_gallery.php.

    Question…when I update the theme will I lose that edit, or do I need to install a child theme and edit that instead?

    Thanks,
    Brian

    (Yes, I realize this is a 5 yr old thread.)

    #1097505

    Hi,

    Thank you for using Enfold.

    You can override the shortcodes in your child theme. Here’s how:

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Please don’t hesitate to open a new thread if you need further assistance. We’ll close this one for now.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Masonry Gallery Infinite Scroll’ is closed to new replies.