Tagged: ,

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

    When the Enfold theme is installed you also get a few add ons in the WP toolbar, ‘theme options’ and some add ons under new… ‘new portfolio article’ etc. Sinch I create this website for a client, who I dont want to f@$k up all kinds of settings, I would atleast want to hide some of them.

    But in which file(files?) can I find how to delete these? I found the function-set-avia-backend.php file has something mentioning the admin bar, but I cant find the exact pieces of code..

    thanks for the help!

    • This topic was modified 10 years, 8 months ago by durkadurka.
    #252313

    Hi durkadurka!

    You can find the references to admin_bar_menu here /framework/php/function-set-avia-backend.php, under the function avia_backend_admin_bar_menu wich defines the admin bar on different places.

    If you wish to disable it completely you could do the following on functions.php or your child funcitons

    
    remove_action('admin_bar_menu', 'avia_backend_admin_bar_menu', 99);
    

    Regards,
    David

    #308326

    I want the same, but it does’t work on my backend (the extra line for the functions.php).
    Any ideas?

    • This reply was modified 10 years, 3 months ago by LukasE.
    #308574

    Hey!

    I tested this on my install and it worked:

    remove_action('admin_bar_menu', 'avia_backend_admin_bar_menu', 99);
    

    Can you post a link to your website? a temporary admin account would be helpful.

    Cheers!
    Josue

    #308584

    Hey!

    Thank you for using Enfold.

    Please try this:

    function avia_admin() {
    	remove_action('admin_bar_menu', 'avia_backend_admin_bar_menu', 99);
    }
    add_action( 'init', 'avia_admin', 1);
    

    Cheers!
    Ismael

    #317913

    PERFECT. Thanks and have a great day!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘not showing enfold theme adons in admin toolbar (aka WordPress Admin Bar)’ is closed to new replies.