• Resolved Joe Web

    (@joeinfo)


    i see in the readme file that hueman changed the social media links to default to rel=nofollow back in 2013. why? every top-10 ranking site i check has their social property links set as normal, default dofollow links.

    i see in the themes>hueman>footer.php that hueman apparently pulls these social media nofollow links from the functions/init-front.php file, around line 293:

    printf( '<li><a rel="nofollow" class="social-tooltip" %1$s title="%2$s" href="%3$s" %4$s %5$s><i class="fa %6$s"></i></a></li>',

    can someone please tell me how i can change these social media links to rel=follow by modifying my child theme files?

    thank you very much!

    • This topic was modified 5 years, 11 months ago by Joe Web.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Joe Web

    (@joeinfo)

    i found a way to remove the ‘a re=nofollow’ from social media links that works, though i am not sure it is the best way:

    1) i copied the entire function from the parent functions/init-front.php file (for me, that was line 248 through line 355. the beginning of the code chunk looks like this:

    /*  Social links
    /* ------------------------------------ */
    if ( ! function_exists( 'hu_print_social_links' ) ) {
      function hu_print_social_links() {

    2) i pasted this into my child functions.php — except for the entire first line (the ‘if function exists’ with the opening curly bracket) and the very last line (the closing curly bracket). so what i pasted into my funtions.php file starts with this on the first line:

    /*  Social links without the opening IF and its closing curly brackets
    /* ------------------------------------ */
      function hu_print_social_links() {

    so, now that my function with the same name already exists, i guess the ‘if exists function hu_print_social_links’ statement in the parent file will simply get skipped over (since child functions run before parent functions.)

    if my solution is a poor one… or if my understanding of how this all works is incorrect, please post your thoughts.

    thank you

    Theme Author presscustomizr

    (@nikeo)

    Hi @joeinfo, that’s exactly what pluggable functions are for. So your solution is good.

    Thread Starter Joe Web

    (@joeinfo)

    hi @nikeo, thank you for your response… and for this wonderful theme! we’ve been using hueman for a couple years and it has suited our needs perfectly!

    Thread Starter Joe Web

    (@joeinfo)

    marking as resolved.
    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘change hueman theme social links from rel=nofollow to follow’ is closed to new replies.