-
AuthorPosts
-
January 23, 2014 at 5:51 am #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!
January 23, 2014 at 7:21 am #213717Hey 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,
IsmaelJanuary 23, 2014 at 9:08 am #213735Thank 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?
January 23, 2014 at 9:28 am #213744Weird. 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!
January 23, 2014 at 10:46 am #213767Hi!
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,
PeterMay 4, 2019 at 10:18 pm #1097307I 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.)
May 5, 2019 at 9:22 pm #1097505Hi,
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 -
AuthorPosts
- The topic ‘Masonry Gallery Infinite Scroll’ is closed to new replies.
