Forum Replies Created
-
AuthorPosts
-
agricienciaMember
Resolved,
I found the code in framework.php and comment it
/*function sanitize_admin_bar() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu(‘themes’);
$wp_admin_bar->remove_menu(‘customize’);$my_theme = wp_get_theme()->get(‘Name’);
$target_url = is_admin() ? home_url() : admin_url();$wp_admin_bar->add_node(array(
‘parent’ => false,
‘id’ => ‘mo-theme-menu’,
‘title’ => __($my_theme, ‘mo_theme’),
‘href’ => $target_url
));$wp_admin_bar->add_node(array(
‘parent’ => ‘mo-theme-menu’,
‘id’ => ‘theme-options’,
‘title’ => __(“Theme Options”, ‘mo_theme’),
‘href’ => admin_url(‘themes.php?page=ot-theme-options’)
));if (current_theme_supports(‘single-page-site’)) {
$wp_admin_bar->add_node(array(
‘parent’ => ‘mo-theme-menu’,
‘id’ => ‘page-sections’,
‘title’ => __(“Page Sections”, ‘mo_theme’),
‘href’ => admin_url(‘edit.php?post_type=page_section’)
));
}
$wp_admin_bar->add_node(array(
‘parent’ => ‘mo-theme-menu’,
‘id’ => ‘pages’,
‘title’ => __(“Pages”, ‘mo_theme’),
‘href’ => admin_url(‘edit.php?post_type=page’)
));
$wp_admin_bar->add_node(array(
‘parent’ => ‘mo-theme-menu’,
‘id’ => ‘posts’,
‘title’ => __(“Posts”, ‘mo_theme’),
‘href’ => admin_url(‘edit.php?post_type=post’)
));
$wp_admin_bar->add_node(array(
‘parent’ => ‘mo-theme-menu’,
‘id’ => ‘portfolios’,
‘title’ => __(“Portfolio”, ‘mo_theme’),
‘href’ => admin_url(‘edit.php?post_type=portfolio’)
));
$wp_admin_bar->add_node(array(
‘parent’ => ‘mo-theme-menu’,
‘id’ => ‘media’,
‘title’ => __(“Media”, ‘mo_theme’),
‘href’ => admin_url(‘upload.php’)
));}*/
agricienciaMemberThank you!
It work´s!
Best regards
agricienciaMemberCan you please give some feedback.
agricienciaMemberThis reply has been marked as private. -
AuthorPosts