Remove Theme settings from admin panel
-
Hi there!
How could I remove the theme settings from the admin panel?
I’m trying with remove_menu_page(‘page=_options&tab=1’); //themesettings
and then add_action(‘admin_menu’,’remove_menus’);
It worked for most of the menus but not the theme menu.
Also 2nd question is how to remove this from the top dashboard bar?
Update:
So I found out how to remove it from the admin bar
$wp_admin_bar->remove_node(‘_options’);
But not the menu side bar.
Hello,
Try to add the following code snippet to the functions.php file in the child theme.
function basel_custom_admin_styles() {
echo '<style>
#toplevel_page__options{
display: none;
}
</style>';
}
add_action( 'admin_footer', 'basel_custom_admin_styles' ,200);
Kind Regards
XTemos Studio