Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #534448

    HI, Enfold expert,

    even i select to display only post title in page setting but that only work with pages.

    All my category pages and tag pages show summary on posts. see the screenshots.

    category pages: http://prntscr.com/91q1uc
    tag pages: http://prntscr.com/91q2oo

    Note: please do not give me Css property to display:none it, i want php customization to remove that summary from category pages and tag pages.

    site: http://themezy.tk/category/blogger-templates-authors/

    • This topic was modified 9 years, 1 month ago by hamzakhankhan. Reason: for better understand
    #535994

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avf_post_slider_entry_excerpt', '__return_false');
    

    Cheers!
    Josue

    #536031

    Hi, Josue

    I add your coding in function.php it worked for me to remove the summary from posts on Grid-Layout.

    However, i also want to remove the Comments and Dates. i uncheck it from the dashboard but still appearing:

    screenshot: http://prntscr.com/92xflt

    How to remove it: >>> screenshot: http://prntscr.com/92xgc3

    site Link: http://themezy.tk/

    #536040

    I would suggest using a Quick CSS for that

    .slide-meta {
        display: none;
    }

    But if you want to remove it from the code you’d need to edit /config-templatebuilder/avia-shortcodes/postslider.php, delete this block of code (431-441):

    						$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>";
    

    Regards,
    Josue

    #536044

    Hi, Josue

    Thanks for your support, the php coding helped me alot. it removed the comments and dates.

    however, only one thing left. please do that also for me.

    The Tag pages, category pages and pages are displaying the category tags with post. please how can i remove that with php.

    for better understand see: screenshot: http://prntscr.com/92xthj

    Or check direct link:
    http://themezy.tk/category/blogger-templates-authors/
    http://themezy.tk/tag/sidebar/

    #536046

    In the same file, remove:

    		                        $output .= '<span class="blog-categories minor-meta">';
    		                        $output .= $cats;
    		                        $output .= '</span>';
    

    Regards,
    Josue

    #536071

    Thanks bundles Josue. it completely now worked for me. thanks again.

    #536075

    You are welcome, glad to help :)

    Regards,
    Josue

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