Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #656104

    Hi,

    I want to show author name on the post slider elements

    Can you help me

    Thanks,

    #656630

    Hey brightvessel,

    Please go to enfold/config-templatebuilder/avia-shortcodes/postslider.php file and find

    						$meta  = "
    <div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= "
    <div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div>
    <div class='slide-meta-del'>/</div>
    ";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$meta .= "</div>
    ";

    and change it to

    						$meta  = "
    <div class='slide-meta'>";
                            $meta .= get_the_author();
    						$meta .= "</div>
    ";

    If you are using a child theme, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Yigit

    • This reply was modified 9 years, 6 months ago by Yigit.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.