Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #471183

    Hello,
    I my enfold settings, I asked not to display the author in my posts.
    The author is not displayed but remains in the source code with a css attribute display none. Bots like Google can see and crawl the link, and they found a R301 in my case. Not really relevant.
    How can I make the link author not to be present in the source code.
    Thank you

    #471478

    Hey JBMKL!

    you could try the following:
    open /wp-content/themes/enfold/includes/loop-index.php
    and remove this around line 189:

    echo '<span class="vcard author"><span class="fn">';
                        the_author_posts_link();
    

    Cheers!
    Andy

    #855376

    Hello,

    while searching around I found this thread from 2015. This is what I would like to achieve as well and did the following: I opened /wp-content/themes/enfold/includes/loop-index.php, made a copy, removed the following code and put the copy to my Enfold child theme. But I still can see the author link in the source code

    echo '<span class="vcard author"><span class="fn">';
                        the_author_posts_link();

    Can you help? Thank you for your kind assistance in advance.

    Best regards
    Sophie

    #855473

    Hi Sophie,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #855486

    Hi Victoria,

    yes of course, please kindly find in private content box below.

    Thanks so much in advance.

    Kind regards
    Sophie

    #855840

    Hi Sophie,

    I could not check the code on your website, the Editor menu under appearance is disabled. Can you enable it?

    Best regards,
    Victoria

    #855857

    Oh yes, you are right, I disabled it due to security reasons, but I just enabled it. Thanks a lot, Victoria.

    Best regards
    Sophie

    #856197

    Hi Sophie,

    Can you check now? If the author link still shows, please give me a page, where it happens.

    Best regards,
    Victoria

    #856245

    Hi Victoria,

    I just checked, the author link is still there. Please see an example post link in private content box. Thanks a lot in advance, Victoria.

    Kind regards
    Sophie

    #856546

    Hi Sophie,

    I am not seeing it, please attach a screenshot.

    Best regards,
    Victoria

    #856559

    Hi Victoria,

    please kindly find a screenshot in private content box. Thank you for your help in advance.

    Kind regards
    Sophie

    #857012

    Hi Sophie,

    That is a different post and the code you’re showing is from the comments component, it’s a very different story. Please post a link to a page where the above screenshot was taken.

    Best regards,
    Victoria

    #857069

    Hi Victoria,

    please find the link to the post from where the screenshot was taken in private content box. No, it’s not from the comments component, but it’s from post meta info > blog author > entry author link etc. and the code that Andy gave at that time was for removing exactly that information.

    Really hope you can help. Thanks a lot in advance, Victoria.

    Best regards
    Sophie

    #857464

    Hi Sophie,

    I just noticed, that the loop-index.php file is supposed to be in the includes folder in the child theme as well. You need to preserve the file path. Now this file is not being used, the one from parent theme is used. YOu need to create the /includes in your child theme and put the file there.

    Best regards,
    Victoria

    #857476

    Hi Victoria,

    great, that tip did it, Victoria :-) ! Thank you so much! Just one more question: I made some changes in loop-search.php – do I need to put this file to the /includes folder as well?

    Thanks again for all your help!

    Kind regards
    Sophie

    #857573

    Hi,

    Yes it you would need to create an /includes folder in the child directory and save the file within that folder.

    Best regards,
    Jordan Shannon

    #857592

    Hi Jordan,

    thank you for your fast response. Okay, I will put this file to the /includes folder as well. I think you can close this topic now :-) .

    Thanks again!

    Kind regards
    Sophie

    #857595

    Hi,

    No problem, I’m glad you were able to be helped. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Don't display author link at all in my source code’ is closed to new replies.