Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #781144

    Hey guys,
    I know that there are many solutions to solve this “Problem” in the Forum by using CSS -> display: none
    BUT if you take a look at the Sourcecode the Author, Date und Links to the Authors Page are still available.
    Is there a way to delete this Code, not just “not displaying”

    Thank you in advance

    #781249

    Hi!

    You can edit loop-index.php, find these lines:

    
    echo "<span class='post-meta-infos'>";
    
    echo "<time class='date-container minor-meta updated' >".get_the_time(get_option('date_format'))."</time>";
    echo "<span class='text-sep text-sep-date'>/</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 text-sep-comment'>/</span>";
        }
    
    
        if(!empty($cats))
        {
            echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
            echo $cats;
            echo '</span><span class="text-sep text-sep-cat">/</span>';
        }
    
    
        echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
        echo '<span class="entry-author-link" >';
        echo '<span class="vcard author"><span class="fn">';
        the_author_posts_link();
        echo '</span></span>';
        echo '</span>';
        echo '</span>';
    echo '</span>';
    

    Please comment them out by placing a /* before and a */ after that whole block of text . You may also remove it from the file if you prefer.

    I hope that helps!

    Best regards,
    Sarah

    #781280

    Thank you very much.
    Because I use a enfold-child theme I created a directory /themes/enfold-child/includes and copied the file from /themes/enfold/includes
    After that I edited the copy as you adviced.

    THANKS

    • This reply was modified 7 years, 8 months ago by Oversberg.
    #781287

    You’re welcome, and thank you for using Enfold!

    Do let us know here in the forums if you need help with anything else.

    Best regards,
    Sarah

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove date and author from archiv, category and tag pages’ is closed to new replies.