agriciencia

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Remove Appdev menu from admin bar #6863
    agriciencia
    Member

    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’)
    ));

    }*/

    in reply to: Text missing #6741
    agriciencia
    Member

    Thank you!

    It work´s!

    Best regards

    in reply to: Text missing #6732
    agriciencia
    Member

    Can you please give some feedback.

    in reply to: Text missing #6681
    agriciencia
    Member
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)