Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #811797

    Hi! How do i rename the load more button in the masonry gallery button?

    #811858

    Hey stoliarova,

    You can edit config-templatebuilder > avia-shortcodes > masonry_entries.php. Search for this code:

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

    Please find

    
    'Load more','avia_framework'

    in the string put something like this:

    'This is new Load more text','avia_framework'

    Best regards,
    Jordan Shannon

    #812025

    Hello! I tried but couldn’t find the line. All i’ve got this

    $output = “”;

    $params[‘class’] = “main_color “.$meta[‘el_class’];
    $params[‘open_structure’] = false;
    $params[‘id’] = !empty($atts[‘id’]) ? AviaHelper::save_string($atts[‘id’],’-‘) : “”;
    $params[‘custom_markup’] = $meta[‘custom_markup’];
    if( ($atts[‘gap’] == ‘no’ && $atts[‘sort’] == “no”) || $meta[‘index’] == 0) $params[‘class’] .= ” avia-no-border-styling”;

    //we dont need a closing structure if the element is the first one or if a previous fullwidth element was displayed before
    if($meta[‘index’] == 0) $params[‘close’] = false;
    if(!empty($meta[‘siblings’][‘prev’][‘tag’]) && in_array($meta[‘siblings’][‘prev’][‘tag’], AviaBuilder::$full_el_no_section )) $params[‘close’] = false;

    if($meta[‘index’] != 0) $params[‘class’] .= ” masonry-not-first”;
    if($meta[‘index’] == 0 && get_post_meta(get_the_ID(), ‘header’, true) != “no”) $params[‘class’] .= ” masonry-not-first”;

    $masonry = new avia_masonry($atts);
    $masonry->extract_terms();
    $masonry->query_entries();
    $masonry_html = $masonry->html();

    if(!ShortcodeHelper::is_top_level()) return $masonry_html;

    if( !empty( $atts[‘color’] ) && !empty( $atts[‘custom_bg’]) )
    {
    $params[‘class’] .= ” masonry-no-border”;
    }

    $output .= avia_new_section($params);
    $output .= $masonry_html;
    $output .= avia_section_after_element_content( $meta , ‘after_masonry’ );

    return $output;
    }

    }
    }

    #812277

    Hi,

    Apologies, I pointed you to the wrong file. You want to go to:

    enfold/config-templatebuilder/avia-shortcodes/av-helper-masonry.php

    Best regards,
    Jordan Shannon

    #845461

    Hi Jordan (and Kriesi team)-

    I am trying to follow these instructions to change the Load More button as well but cannot find the avia-shortcodes either. Did something change with the update?

    Thank you!

    #845473

    Hi,
    Are you looking within the theme folder structure?

    Best regards,
    Jordan Shannon

    #848427

    Hi Jordan- Somehow I missed this note. I am looking in Appearance/Editor. Is that the right place?
    Thank you!

    #848455

    Hi,

    No you would want to look within the theme files themselves.

    Best regards,
    Jordan Shannon

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