Tagged: ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #720957

    Hi Support Teeam

    I have the problem on

    I would like to remove the admin bar: i found a sololtion here:

    https://kriesi.at/support/topic/how-to-hide-admin-bar/

    but on Safari Browser there is still this fuxxx admin bar.

    Do you now a solotion?

    I Try all of theme a Plugin, does not work.

    #721025

    Hey Pascal!

    I changed the code to following one

    add_action('after_setup_theme', 'remove_admin_bar');
    
    function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {
      show_admin_bar(false);
    }
    }

    Please review your website now

    Best regards,
    Yigit

    #721058

    Hi Yigit

    Thank you for your changes, but on Safari i have still a admin bar: https://www.dropbox.com/s/p8vzdfj0eppgyb9/Screenshot%202016-12-06%2014.21.18.png?dl=0

    Hmm, what else will work?

    All the best, Pascal

    #722014

    Hi,

    Please post us your login credentials (in the “private data” field), so we can further.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.

    Best regards,
    Nikko

    #722019

    Hi Nikko

    Sorry i forget ;-)

    All the best,
    Pascal

    #722110

    Hey!

    Thanks, I checked it should work, just want to check if the user account you used in the screenshot is an admin account also? and to clarify, you mentioned this only happens in safari, so the adminbar is not displaying on browsers like chrome or firefox? if yes, can you also give allow us to use an account that is just a subscriber.

    Cheers!
    Nikko

    #722439

    Ni Nikko, we have to suspend here that problem, because the system is now live and we have some massive problems with caching and also someone with admin access has change the langueges etc. so we delete all admin access and will buildup a test envoirment and i will contact you again if it works to solve this problem.

    All the best,
    Pascal

    #724893

    Hi Nikko

    Now the site works ok, so i made a customer account for you, see in private

    #725453

    Hi,

    I have checked it and it’s weird you can hide it in administrator account but still showing up on the customer account, I have replaced the code with:

    if(!current_user_can('edit_posts')) {
      remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
      add_action('wp_footer', 'hideAdminBar');
    }
    
    function hideAdminBar() { ?>
    <style type="text/css">	
    html { margin-top: 0 !important; }
    * html body { margin-top: 0 !important; }
    
    @media screen and ( max-width: 782px ) {
      html { margin-top: 0 !important; }
      * html body { margin-top: 0 !important; }
    }
    </style>
    <?php 
    }

    Let us know if it’s working on your end.

    Regards,
    Nikko

    #725485

    Hi Nikko

    You are my Hero :-)

    1000 Thanks and have nice weekend.

    Cheers, Pascal

    #725527

    Hi Pascal,

    Glad we could help :)

    Cheers!
    Nikko

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