Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1224483

    You’ve now added a layerslider item to the admin bar and I would like to not have the (Advanced Layout Builder) in the Edit button. Can you please not add extra crap to the code. I know you’re trying to be helpful, but it’s just extra stuff that clogs up WordPress dashboard.

    I don’t want to use more css code to hide these extra things you have added, please have a switch in the Theme Options page to turn off the extra settings so we don’t have to continue to add more garbage to our code for things you’re adding .. that no-one asked for.

    #1224660

    Hey Michael,

    I’ll share with the dev team.

    Best regards,
    Jordan Shannon

    #1242528

    Hello, have you found a solution to disable the layerslider menu in the adminbar? THX in advanced. Best wishes, Tom

    #1242675

    Hi THobbes,

    Please try adding this code in functions.php in your child theme:

    function remove_layerslider_menu( $wp_admin_bar ) { 
        $wp_admin_bar->remove_node( 'ab-ls-add-new' );  
        $wp_admin_bar->remove_node( 'ab-layerslider' );   
        $wp_admin_bar->remove_node( 'ab-layerslider-new' );  
        $wp_admin_bar->remove_node( 'ab-ls-recently-created' ); 
        $wp_admin_bar->remove_node( 'ab-ls-recently-modified' ); 
    }
    
    add_action( 'admin_bar_menu', 'remove_layerslider_menu', 999 );

    Hope it helps :)

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.