badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

How to remove authors name from showing in search results

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #79100
    john
    Participant

    After a posts gets crawled and indexed authors name appears alongside, so do i remove authors name from showing in search results?

    #79112

    Hi John,

    To remove author name just go to theme directory > inc > functions.php on line no: 176 you will find below line of code:

    echo '<div class="date">' . $posted_on . '</div> <div class="by-author vcard author">' . $byline . '</div>';

    just replace above mentioned code to the below one.

    echo '<div class="date">' . $posted_on . '</div> ;

    Thank you!

    #79561
    kyle.baryan3210
    Participant

    what will be the code If I want to remove the date as well from the post?

    #79578

    Hi kyle.baryan3210,

    If you want to remove the Date as well then you have to remove all the above mention code.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.