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

    Hi again!

    I want to ask if there is a way to have title + subtile + excerpt in the blog grid
    I´m using the blog like events. So i´m wandering if is posible to show Event title, and then date of the event like a subtitle, and then the excerpt.

    Thanks a lot!

    #253113

    Hi Victor!

    Thank you for using the theme!

    I’m sorry but this is beyond the scope of support and is not a theme related issue. You might need to find a plugin or hire a freelance developer to add the feature for you. You can find the blog grid code on config-templatebuilder > avia-shortcodes > postslider.php. Find this code on line 374. This is the post date, comment count container. Maybe you can use custom fields to replace the output.

    if($show_meta && !empty($excerpt))
    					{
    						$output .= "<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' );
    
    							$output .= "<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));
    						$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$output .= "</div>";
    					}

    I hope that helps.

    Regards,
    Ismael

    #254293

    Thanks Ismael!

    As you said, I edit my self those lines… I paste here the instruction for other people:

    1- Instal Wp-subtitle plugin : http://wordpress.org/plugins/wp-subtitle/
    2- on config-templatebuilder > avia-shortcodes > postslider.php. on line 372, replace with:

    $subtitle = get_post_meta($the_id,’wps_subtitle’);
    $output .= !empty($subtitle) ? “<h4 class=’event-end-date’ $markup>”.$subtitle[0].”</h4>” : ”;
    $output .= ‘</header>’;

    Cheers!

    #254488

    Hi!

    Thanks for sharing! Let us know if you have any other questions or issues

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Subtitles in excerpt, blog grid’ is closed to new replies.