-
AuthorPosts
-
June 22, 2017 at 8:00 pm #811797
Hi! How do i rename the load more button in the masonry gallery button?
June 22, 2017 at 10:59 pm #811858Hey 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 ShannonJune 23, 2017 at 9:58 am #812025Hello! 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;
}}
}June 23, 2017 at 7:37 pm #812277Hi,
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 ShannonAugust 29, 2017 at 9:52 pm #845461Hi 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!
August 29, 2017 at 10:31 pm #845473Hi,
Are you looking within the theme folder structure?Best regards,
Jordan ShannonSeptember 6, 2017 at 2:07 am #848427Hi Jordan- Somehow I missed this note. I am looking in Appearance/Editor. Is that the right place?
Thank you!September 6, 2017 at 7:29 am #848455Hi,
No you would want to look within the theme files themselves.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.