-
AuthorPosts
-
October 10, 2017 at 11:26 pm #862684
Hi, what is best way to make a social profile icon in the header and footer as a nofollow link?
Unfortunately I don’t have a child theme.
Thanks
Best RegardsOctober 12, 2017 at 6:19 pm #863561Hey,
Please go to enfold/includes/helper-social-media.php file and find
$html .= "<a {$blank} href='".$icon['social_icon_link']."' ".av_icon_string($icon['social_icon'])." title='".ucfirst($icon['social_icon'])."'><span class='avia_hidden_link_text'>".ucfirst($icon['social_icon'])."</span></a>";
and change it to following
$html .= "<a {$blank} rel='nofollow' href='".$icon['social_icon_link']."' ".av_icon_string($icon['social_icon'])." title='".ucfirst($icon['social_icon'])."'><span class='avia_hidden_link_text'>".ucfirst($icon['social_icon'])."</span></a>";
We would recommend you to use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ otherwise, you would need to apply the changes each time you update the theme :)
Best regards,
YigitOctober 16, 2017 at 1:15 pm #864789Hi, I’ve modified helper-social-media.php file and works great! In the meanwhile I’ve created also a child theme. Do I have to copy “helper-social-media.php” file with that modification in the child-theme folder?
Thanks
Best regardsOctober 16, 2017 at 1:35 pm #864792Hi,
Yes, please copy it inside “includes” folder on your child theme :)
Best regards,
YigitOctober 16, 2017 at 1:49 pm #864800Hi Yigit, excuse me, I don’t have that folder on my child theme folder, only classic two files like style.css and function.php. Do I have to copy near those?
October 16, 2017 at 9:17 pm #864943Hi,
You can simply create the folder and name it “includes” and place it inside your child theme where style.css file and functions.php files are and then insert the file inside that “includes” folder. If you need assistance, please post FTP logins here privately :)
Best regards,
YigitOctober 17, 2017 at 1:28 pm #865274Hi, I’ve done what you said, but if you can give a look in private, will be great.
In private there are ftp credential.
Thank you.
Best Regards.October 17, 2017 at 4:50 pm #865346Hi,
It seems to work fine on my end. Attached a screenshot in private content field. Have you figured it out already?
Best regards,
YigitOctober 17, 2017 at 5:14 pm #865362Yes, you are great!
Thanks Yigit.
Best regardsOctober 17, 2017 at 5:23 pm #865368Hi,
Glad Rikard could help! :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Link no follow on social profile icons’ is closed to new replies.