Home Forums Basel support forum Remove Theme settings from admin panel

Remove Theme settings from admin panel

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17747

    AllawiT
    Participant

    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.

    #17748

    AllawiT
    Participant

    Also 2nd question is how to remove this from the top dashboard bar?

    #17750

    AllawiT
    Participant

    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.

    #17760

    Eric Watson
    Participant

    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

    #17774

    AllawiT
    Participant

    Thank you very much!

    #17783

    Eric Watson
    Participant

    You are welcome!

Viewing 6 posts - 1 through 6 (of 6 total)