Hey Kriesi,
Great Work! I would like to Hide the Template and Theme Options coming on the top on Wordpress Back-end i.e. on WP Admin Menu.
Let me also know if you are working on responsive for the Abundace.
Hey Kriesi,
Great Work! I would like to Hide the Template and Theme Options coming on the top on Wordpress Back-end i.e. on WP Admin Menu.
Let me also know if you are working on responsive for the Abundace.
Hi!
1) Add following code to css/custom.css:
#wp-admin-bar-avia, #wp-admin-bar-templates{
display: none !important;
}
2) No, Abundance will not be reponsive.
Best regards,
Peter
It has not fixed my problem i still see those Template Options and Theme Options on my Wordpress backend on the Top Admin Bar.
Yes, the code above will only hide the option from the frontend admin bar. If you want to hide it on admin pages too add following code to functions.php (at the very bottom):
if( is_admin() )
{
add_action('admin_print_scripts', 'ino_hide_admin_options');
}
function ino_hide_admin_options()
{
echo "\n <style type='text/css'> \n";
echo "#wp-admin-bar-avia, #wp-admin-bar-templates{display: none !important;}";
echo "</style>\n \n ";
}Peter that Worked as a Champ.
Thanks
Hi!
Great :)
Best regards,
Peter
Hi Peter,
i would love to do the same with the Replete Theme.
I have added the code you have posted to my functions files and it works great for the admin bar at the top of the screen but im still able to see the theme options button on the left hand site admin bar of wordpress.
Is there a chance to remove or hide that as well ?
I hope you are able to help me.
Thanks in advance
Shorty
got it ;) sorry ! but maybe other user will find the post useful.
i added the css id to your code ( #toplevel_page_avia )
if( is_admin() )
{
add_action('admin_print_scripts', 'ino_hide_admin_options');
}
function ino_hide_admin_options()
{
echo "\n <style type='text/css'> \n";
echo "#wp-admin-bar-avia, #wp-admin-bar-templates, #toplevel_page_avia{display: none !important;}";
echo "</style>\n \n ";
}Hey!
Glad that you solved the problem :)
Regards,
Peter
Is there a way to change the name of "replete" in the admin sidebar and use something more general so clients know what it is for?
Thanks in advance.
You can try to add following code to functions.php (at the very bottom) and change the "My text" title to something else...
add_filter('avia_filter_backend_page_title', 'avia_change_theme_title');
function avia_change_theme_title() {
return 'My text';
}Hi Peter,
another question ...
the function works well but for some reason the "Theme Options" edit link is still visible if i have the admin bar active for a user + when i view the page.
Means it works fine if i am viewing the dashboard but as soon as i am looking at the live page i still can see the menu links. Is there a way to get that removed as well?
Shorty
You can try following code instead:
if( is_admin() )
{
add_action('admin_print_scripts', 'ino_hide_admin_options');
}
else
{
add_action('wp_head', 'ino_hide_admin_options');
}
function ino_hide_admin_options()
{
echo "\n <style type='text/css'> \n";
echo "#wp-admin-bar-avia, #wp-admin-bar-templates, #toplevel_page_avia{display: none !important;}";
echo "</style>\n \n ";
}Awesome Peter!
Ich dank dir für deine schnelle hilfe! Ihr habt wirklich den besten Support am Start!
Hi!
Schön, dass ich helfen konnte :)
Regards,
Peter
This topic has been closed to new replies.