Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #451552

    Hi, I need to give rel-nofollow for all social profile in footer. But when I write < a href= “LINK” rel=”nofollow”>TEXT links are not working.
    So, is it possible to give rel noffolow for social profile in footer and how I can do it? Thanks!

    • This topic was modified 8 years, 10 months ago by Zakkery.
    #451693

    Hey Taras!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('#socket .social_bookmarks li a').attr('rel','nofollow');
    });
    <script>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');

    Cheers!
    Yigit

    • This reply was modified 8 years, 10 months ago by Yigit.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.