Say, when members of this website login. At the top in a grey bar their is a pro logo with a link. How can this be removed as members are clicking on it and they shouldn’t have access to this information. This information is visible once they login. https://lincolnalumnaedst.org/login/. I have attached an image.
Hi @rkassebaum,
Thanks for reaching out.
To remove that Pro icon and link, you need to add a few custom PHP codes. Please try adding the following code in your child theme’s functions.php file.
function remove_x_icon()
{
if( !current_user_can('administrator') )
{
echo '<style>
#wp-admin-bar-tco-main {
display: none;
}
</style>';
}
}
add_action('wp_head', 'remove_x_icon');
add_action('admin_head', 'remove_x_icon');
The above code will remove the Pro icon for all roles except for the Admin roles. You can add the code to support other roles if you need it.
Please remember that the above code will work if copied as it is and doesn’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
