Hi
How can I hide/remove the "SEO" from my wp admin bar? I can't find such an option in the settings.
See screenshot for what I mean
Thanks
Hi
How can I hide/remove the "SEO" from my wp admin bar? I can't find such an option in the settings.
See screenshot for what I mean
Thanks
Have a read here: https://yoast.com/disable-wp-admin-bar/
Nope thanks. I asked to hide the
Yoast SEO menu
from the adress bar, NOT the whole address bar.This topic is NOT resolved.
I don't know why you would want to do that, but maybe this will help
I know why you might want to do this, maybe similar to my "why..." The links above are all about removing the whole admin bar, no knowing why one would want to do that... :-)
Here is what I just found that does it nicely... Add to the top of a child theme's functions.php file via Appearances > Editor
/* Remove SEO Menu in Admin Bar
*/
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wpseo-menu');
}
// and we hook our function via
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
Kind regards...
Thank you, crzyhrse!
Your code works ;-)
برچسب : نویسنده : استخدام کار wpss بازدید : 289