Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1072930

    Razorsharp_
    Participant

    Hey,

    How do I make the social icon links in my footer nofollow?

    I’ve tried this: https://community.theme.co/forums/topic/make-social-icons-nofollow/#post-285216 but according to this: http://www.paulsilver.co.uk/articles/seo_check_nofollow.php the links are still do follow.

    Regards.

    #1072944

    Lely
    Moderator

    Hi There,

    Thanks for posting in. You may use the following code.

    jQuery(document).ready(function($) {
    $('footer .x-social-global a').attr('rel','nofollow');
    });

    Or you may just update the suggested code here:https://community.theme.co/forums/topic/how-to-make-links-in-footer-menu-nofollow/#post-1072903, to the following to work for both menu and social links in footer:

    jQuery(document).ready(function($) {
    $('footer a').attr('rel','nofollow');
    });

    Hope this helps.

    #1073224

    Razorsharp_
    Participant

    Excellent do you know how to make image links nofollow?

    #1073247

    Rupok
    Member

    Hi there,

    Thanks for writing back. Do you want to do this for all image links? You can update the above code to this :

    jQuery(document).ready(function($) {
      $('footer a, a.x-img').attr('rel','nofollow');
    });

    Hope this helps.

    Cheers!

    #1073289

    Razorsharp_
    Participant

    Anyway to change it to specific links?

    #1073290

    Razorsharp_
    Participant

    Image links*

    #1073643

    Nabeel A
    Moderator

    Hi again,

    You can change the above code with this:

    jQuery(document).ready(function($) {
      $('footer a, a.x-img').attr({'rel':'nofollow', 'href':'http://google.com/'});
    });

    Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!

    #1074460

    Razorsharp_
    Participant

    Is have have to add hundreds of sites, will this slow my site? If so is there anything more efficient.

    #1074468

    Razorsharp_
    Participant

    If I*

    #1074539

    Paul R
    Moderator

    Hi,

    Can you provide us your site url.

    You can add the rel=”nofollow” to the link itself instead of using javascript.

    Thanks

    #1075125

    Razorsharp_
    Participant
    This reply has been marked as private.
    #1075490

    Darshana
    Moderator

    Hi there,

    You image link set correctly as no follow. For button shortcode, we don’t have any inbuilt feature to add nofollow. Please follow this instructions for that (https://community.theme.co/forums/topic/make-rows-nofollow/#post-381226).

    Hope that helps.