Hi Michael,
I hope you are well today and thank you for your question.
You can hide the nactive Pro Features buttons on the default sidebar widgets by adding the following CSS code in your site using the below plugin.
http://ww.wp.xz.cn/plugins/add-admin-css
.button.csb-visibility-button,
.button.csb-clone-button,
.csb-pro-layer .pro-info {
display: none;
}
Best Regards,
WPMU DEV
Thanks.
However, WPMU DEV should really re-think this heavy-handed up-sell inside the interface. It’s not endearing in the least.
At least give the user a way to disable without having to use another plugin and css code.
:-\
-Michael
Hi Michael,
The CSS code is not working for you due to CSS specificity issue. To resolve this issue try using any of the following CSS code replacing preciouslt added code.
.button.csb-visibility-button,
.button.csb-clone-button,
.csb-pro-layer .pro-info {
display: none !important;
}
or
.csb-pro-layer {
display: none !important;
}
If you don’t want to use any other plugin to hide it then try adding following code in the functions.php file of your child theme.
add_action('admin_head', 'my_custom_css');
function my_custom_css() {
echo '<style>
.csb-pro-layer {
display: none !important;
}
</style>';
}
We will consider on providing option to hide it.
Cheers,
WPMU DEV
I’d already previously accounted for the CSS specificity, and tried both your suggestions, and other variations myself. None worked with the Add Admin CSS plugin, which is why I’d posted it in it’s support area.
Adding it via the child theme’s functions.php file did work.
Thanks,
Michael
Hi Michael,
Glad to know it’s working for you after adding in child theme’s functions.php file 🙂
It’s working fine for me using all of the above provided solutions.
Some time Add Admin CSS plugin faces issue with the CSS code containing spaces in that case you can just try removing unwanted spaces from CSS code like following.
.csb-pro-layer{display:none !important;}
Cheers,
WPMU DEV