-
AuthorPosts
-
July 9, 2015 at 11:07 pm #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 youJuly 10, 2015 at 3:00 pm #471478Hey 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!
AndySeptember 22, 2017 at 2:04 pm #855376Hello,
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
SophieSeptember 22, 2017 at 5:55 pm #855473Hi 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,
VictoriaSeptember 22, 2017 at 6:21 pm #855486Hi Victoria,
yes of course, please kindly find in private content box below.
Thanks so much in advance.
Kind regards
SophieSeptember 23, 2017 at 6:15 pm #855840Hi Sophie,
I could not check the code on your website, the Editor menu under appearance is disabled. Can you enable it?
Best regards,
VictoriaSeptember 23, 2017 at 6:46 pm #855857Oh yes, you are right, I disabled it due to security reasons, but I just enabled it. Thanks a lot, Victoria.
Best regards
SophieSeptember 24, 2017 at 7:12 pm #856197Hi Sophie,
Can you check now? If the author link still shows, please give me a page, where it happens.
Best regards,
VictoriaSeptember 24, 2017 at 9:51 pm #856245Hi 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
SophieSeptember 25, 2017 at 3:59 pm #856546Hi Sophie,
I am not seeing it, please attach a screenshot.
Best regards,
VictoriaSeptember 25, 2017 at 4:18 pm #856559Hi Victoria,
please kindly find a screenshot in private content box. Thank you for your help in advance.
Kind regards
SophieSeptember 26, 2017 at 4:40 pm #857012Hi 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,
VictoriaSeptember 26, 2017 at 6:14 pm #857069Hi 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
SophieSeptember 27, 2017 at 12:25 pm #857464Hi 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,
VictoriaSeptember 27, 2017 at 12:51 pm #857476Hi 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
SophieSeptember 27, 2017 at 4:06 pm #857573Hi,
Yes it you would need to create an /includes folder in the child directory and save the file within that folder.
Best regards,
Jordan ShannonSeptember 27, 2017 at 4:32 pm #857592Hi 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
SophieSeptember 27, 2017 at 4:34 pm #857595Hi,
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 -
AuthorPosts
- The topic ‘Don't display author link at all in my source code’ is closed to new replies.