Support Forum

Add rel="nofollow" to member social links

EK Edward Koon
Edward Koon
Member

Wanting to add rel=”nofollow” to my profiles social links, Facebook Twitter etc? Toggling nofollow on for the whole forum has no effect on user social links.

Using reboot and reboot child theme. Poked around in the theme files but did not see a place to add it.

Thanks 🙂

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

you can do it for each identity separately… for facebook, for exmaple, here is the function and its defaults:

function sp_PostIndexUserFacebook($args='', $toolTip='') {
    $defs = array('tagId'        => 'spPostIndexUserFacebook%ID%',
                  'tagClass'     => 'spPostUserFacebook',
                  'icon'         => 'sp_Facebook.png',
                  'iconClass'    => 'spImg',
                  'targetNew'   => 1,
                  'noFollow'    => 0,
                  'echo'        => 1,
                  'get'            => 0,
                  );

so you would just pass the ‘noFollow’ argument as 1…  so from reboot theme, change

                                    sp_PostIndexUserFacebook('', __sp('Connect with me on Facebook'));

to

                                    sp_PostIndexUserFacebook('noFollow=1', __sp('Connect with me on Facebook'));

and similarly for other identities…

EK Edward Koon
Edward Koon
Member

Thanks Steve, easy enough.

I did notice the mobile sptopicviewmobile.php is different than the desktop version. Does it inherit the nofollow status from the desktop file?

Also can i copy the modified file to my child theme?

YS Yellow Swordfish
Yellow Swordfish
Member

That’s a no on the first question so you may want to change that one as well.
And a yes to the second question. Just copy them over…