Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #568660

    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.

    #569339

    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

    #569466

    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.

    • This reply was modified 8 years, 10 months ago by gjelsvik.
    #569656

    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

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