Tagged: info, meta, post-meta-infos, remove
Hi there, how do i remove the post meta info?
Thanks! :)
Hi!
Yes, insert following code into the quick css field
.post-meta-infos{
display: none;
}
Regards,
Peter
Thank you!
Yes, this will hide it. But the stuff is still in html. Doesn’t google potentially punish for this kind of thing? Also it would be good to remove that request from php altogether.
Hi,
Edit loop-index.php, find this codes
echo "<span class='date-container minor-meta'>".get_the_time('d M Y')."</span>";
echo "<span class='text-sep'>/</span>";
if ( get_comments_number() != "0" || comments_open() ){
echo "<span class='comment-container minor-meta'>";
comments_popup_link( "0 ".__('Comments','avia_framework'),
"1 ".__('Comment' ,'avia_framework'),
"% ".__('Comments','avia_framework'),'comments-link',
"".__('Comments Disabled','avia_framework'));
echo "</span>";
echo "<span class='text-sep'>/</span>";
}
$taxonomies = get_object_taxonomies(get_post_type($the_id));
$cats = '';
$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);
if(!empty($taxonomies))
{
foreach($taxonomies as $taxonomy)
{
if(!in_array($taxonomy, $excluded_taxonomies))
{
$cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
}
}
}
if(!empty($cats))
{
echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
echo $cats;
echo '</span><span class="text-sep">/</span>';
}
echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
the_author_posts_link();
echo '</span>';
Remove them.
Regards,
Ismael