Hi support,
How do I add rel=”nofollow” to social link in topbar?
It is the facebook link / icon that I want to nofollow.
URL: https://klinikfortandsundhed.dk/
Thanks :-)
/OKEIwebbureau
Hey OKEIwebbureau,
Please try the following in your functions.php file:
function add_no_follow_fb_link(){
?>
<script>
jQuery(document).ready(function($) {
$("#header_meta .av-social-link-facebook a").attr("rel", "nofollow");
});
</script>
<?php
}
add_action('wp_footer', 'add_no_follow_fb_link');
Best regards,
Rikard
Thanks, Rikard – but it didn’t work :-/
https://klinikfortandsundhed.dk/wp-content/uploads/2021/02/Enfold-KFT-Link-Nofollow.png
Please give it another try :-)
/OKEIwebbureau
Hi,
It works on my local installation, how and where did you add it?
Best regards,
Rikard
Hi Rikard,
I added it in the functions-file in the child theme.
Thanks.
/OKEIwebbureau