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!
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
I want the same, but it does’t work on my backend (the extra line for the functions.php).
Any ideas?
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
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
PERFECT. Thanks and have a great day!