Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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, 7 months ago by Michael Oeser.
    #246115

    Hey 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,
    Yigit

    #246131

    Hi 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, 7 months ago by Michael Oeser.
    #246901

    Hey!

    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,
    Peter

    #248105

    Thanks Peter. Topic solved.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Customizing the post meta (date, category etc.)’ is closed to new replies.