Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
March 31, 2014 at 3:06 pm #245463
Hi there,
is there a simple and update save way to customize the post meta line on the blog overview (archive) and sibgle post pages? I´d like to show only the date and the category. No author name and no comment number.
Thanks in advance
Michael- This topic was modified 10 years, 8 months ago by Michael Oeser.
April 1, 2014 at 4:19 pm #246115Hey Michael!
Please add following code to Quick CSS in Enfold theme options under Styling tab or bottom of Style.css file of your child theme
.comment-container, .text-sep-comment, .text-sep-cat, .blog-author { display: none; }
Regards,
YigitApril 1, 2014 at 4:44 pm #246131Hi Yigit,
of course that makes them invisible but isn´t there a way to remove them. display:none is not what I call best practice ;-)
And it doesn´t remove it from everywhere.Cheers
Michael- This reply was modified 10 years, 8 months ago by Michael Oeser.
April 3, 2014 at 7:35 am #246901Hey!
Sure – open up wp-content/themes/enfold/includes/loop-index.php and delete:
echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; echo '<span class="vcard author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>';
and:
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 text-sep-comment'>/</span>"; }
Regards,
PeterApril 7, 2014 at 10:30 am #248105Thanks Peter. Topic solved.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- The topic ‘Customizing the post meta (date, category etc.)’ is closed to new replies.