Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #17454

    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.

    #95529

    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

    #95530

    It has not fixed my problem i still see those Template Options and Theme Options on my WordPress backend on the Top Admin Bar.

    #95531

    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 ";
    }

    #95532

    Peter that Worked as a Champ.

    Thanks

    #95533

    Hi!

    Great :)

    Best regards,

    Peter

    #95534

    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

    #95535

    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 ";
    }

    #95536

    Hey!

    Glad that you solved the problem :)

    Regards,

    Peter

    #95537

    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.

    #95538

    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';
    }

    #95539

    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

    #95540

    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 ";
    }

    #95541

    Awesome Peter!

    Ich dank dir für deine schnelle hilfe! Ihr habt wirklich den besten Support am Start!

    #95542

    Hi!

    Schön, dass ich helfen konnte :)

    Regards,

    Peter

Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘WP Admin Menu’ is closed to new replies.