-
AuthorPosts
-
November 11, 2015 at 11:46 pm #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/91q2ooNote: 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 ago by hamzakhankhan. Reason: for better understand
November 15, 2015 at 3:11 am #535994Hey!
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!
JosueNovember 15, 2015 at 9:32 am #536031Hi, 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/
- This reply was modified 9 years ago by hamzakhankhan.
November 15, 2015 at 9:51 am #536040I 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,
JosueNovember 15, 2015 at 10:43 am #536044Hi, 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/November 15, 2015 at 11:13 am #536046In the same file, remove:
$output .= '<span class="blog-categories minor-meta">'; $output .= $cats; $output .= '</span>';
Regards,
JosueNovember 15, 2015 at 12:43 pm #536071Thanks bundles Josue. it completely now worked for me. thanks again.
November 15, 2015 at 12:44 pm #536075You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.