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

    Hi, is it possible to change the “Load More” in Masonry Gallery with a Button (maybe like the “Submit” button in the contaxt form)?

    Tnks
    Stefano

    #368570

    Hey Stefano!

    Open up /enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php and change line 641 from this.

    $output .= 		"<a class='av-masonry-pagination avia-button avia-color-theme-color av-masonry-load-more' href='#load-more' {$data_string}>".__('Load more','avia_framework')."</a>";
    

    To this.

    $output .= do_shortcode("[av_button label='Load More' link='manually,#load-more' link_target='' size='medium' position='center' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff' custom_class='av-masonry-load-more']");
    

    Regards,
    Elliott

    #368856

    Hi Elliot,
    this code shows the button and that’s exactly what I was looking for but when I click on it it doesn’t load anything but my latest element for a second time.
    Hope you can help me, thanks in advance.
    Stefano

    #368941

    Hi!

    Can you post the link to your website please?

    Regards,
    Yigit

    #369208
    This reply has been marked as private.
    #369550

    Hi!

    Sorry, I thought we were talking about the masonry entries. I don’t see an easy way of doing that for the masonry gallery unfortunately. You would need to style it with CSS instead.

    .av-masonry-load-more {  }
    

    Regards,
    Elliott

    #369699

    thanks again :)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Change Load More in Masonry gallery’ is closed to new replies.