Tagged: enfold, grid layout
I have a site with many pages that use the Avia Builder element: “Blog Posts” we use different categories, and show different blog posts according to category on theese pages.
In Enfold settings->Blog Layout we have removed everything except Blog Author.
The problem is that Grid layout does only show Title+Date, we want it to show Title+author.
Hi,
Open /enfold/config-templatebuilder/avia-shortcodes/postslider.php and look for line 431:
$meta = "<div class='slide-meta'>";
Replace it by this:
$meta = "<div class='slide-meta'>";
$meta .= "<div class='slide-author'>".get_the_author()."</div><div class='slide-meta-del'>/</div>";
Regards,
Josue
Thanks, but my line #431 in that file contains this:
$output .= $this->slide_navigation_arrows();
I cant see that the $meta variable is used in that file other than its a parameter in the shortcode_handler() function.
I can see that a $output variable is used the allmost way you described though.
On line 400 i replaced
$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
with
$output .= "<div class='slide-author'>".get_the_author()."</div><div class='slide-meta-del'>/</div>";
But this didnt work neither.
EDIT:
It worked as long as i updated the files in the main theme, not the child theme.
Hi!
You can replace postslider.php from a child theme with the following method:
http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Regards,
Josue