Hello,
how can I remove permanently the author link, title and author name from source code of the Magazine elements (please see sreenshot in private content box). I do not want bots to crawl and find my author name.
Thank you for your kind help in advance.
Best regards,
Sophie
Hey Sophie,
Please provide for us a link of your web site.
Best regards,
Basilis
Hey Basilis,
yes sure, please kindly find the link in private content box.
Thank you and have a great day!
Best regards,
Sophie
Hi Sophie,
Best regards,
Victoria
Hi Victoria,
thank you for the screenshot. Can you tell what exactly to comment out? I need to remove the author link, title and author name. When I comment out the author in Line 641, there is a syntax error.
Kind regards,
Sophie
Hi,
Best regards,
Victoria
Hi Victoria,
awesome, that is working fine :-) . Thank you so much. You can close this topic now.
Kind regards,
Sophie
Hi Sophie,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria
Thank you :-) . Please close this topic.
Thanks and kind regards,
Sophie
hey Victoria, it looks like you solved the OP issue but all I see is the following:
Hi Sophie,
Best regards,
Victoria
Did you post a screenshot? If so it is no longer visible here. Can you type out the solution?
Thanks.
Hi WebDevDept,
The screenshot has already expired.
The file that is tweaked is enfold > config-templatebuilder > avia-shortcodes > magazine > magazine.php (line 1166 in Enfold 4.8.1):
$author_link = '<a href="' . $author_link . '" title="' . __( 'by', 'avia_framework' ) . ' ' . $author_name . '" rel="author">' . $author_name . '</a>';
just replace it with this code to remove the link:
$author_link = $author_name;
But I would suggest not doing this directly on the enfold theme (parent) as the tweaks get removed during a theme update.
Please follow the instruction in https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb and add it on the child theme.
Best regards,
Nikko
Thanks Nikko!