Hello,
Please provide more details so I can better understand your request. What website url do you want to hide for non-admins? and how do you want the social icons? You want only the admin to see these items so users will not be able to? I can’t understand exactly. Sorry.
Please be more explicit
Thank you!
1.I used the below code to hide Author website and social icons. But I want only the Social icons to show on Administrator profile.
.td-author-social, .td-author-url{
display:none;
See here ==> http://prntscr.com/d2kssf
2. I will like to deactivate links on profile e.g. the facebook link and twitter link in the screenshot above. I don’t want it to show even if user add it in profile settings.
Ok, i think I get it now. It;s the author description you are refering to…ok…
For this you will need to edit the theme code and place a condition that detects if the author is an admin or not. Here are where these links are created: http://screencast.com/t/OFMCSMQ8
You will have to wrap the code in “if” conditions to show the code only for admins. You can use this wp function to do it:
https://codex.wordpress.org/Function_Reference/get_userdata
Thank you!
I am trying to make all links that show in author description nofollow. It seems the below code is returning two profile description. Pls help correct this.
$buffy .= '<div class="td-author-description">';
$buffy .= get_the_author_meta('description', $author_id);
$string = str_replace('href','rel="nofollow" target="_blank" href', $buffy);
echo $string;
$buffy .= '</div>';
Hi,
This topic should help: https://forum.tagdiv.com/topic/author-card-remove-website-link-or-no-follow-it/
Thank you!
https://forum.tagdiv.com/topic/author-card-remove-website-link-or-no-follow-it/
the tutorial in the link above works for Author name and Author website field. But not for the Author description I am talking about.
The Author description field doesnot have any URL space but Authors are adding URL themselves with href tag. The added links now turn to be dofollow but I want it as nofollow or if you can provide code to completely deactivate link in Profile description.
Hi,
Replied in the other topic. The theme cannot influence any custom code you authors add to their description. You will have to edit the code manually. The theme cannot have any control over what your users add in the descriotion field.
Hi,
If you want to show the social icons only for admin you will need coding skills to do it. The theme has n o such option. WordPress offers php functions to check if the user is admin or not but you will need coding skills to use these functions. If you do not have the proper knowledge we suggest hiring some help as we cannot provide any custom work at the moment. Sorry.
Thank you for your understanding.
You could try to block the html altogether in that field: https://premium.wpmudev.org/blog/enable-or-disable-all-html-tags-in-wordpress-author-biography-profiles/?utm_expid=3606929-90.6a_uo883STWy99lnGf8x1g.0&utm_referrer=https%3A%2F%2Fwww.google.ro%2F
Thanks.