• Resolved sgtan2264

    (@sgtan2264)


    Hi i have just recreated my website. but I have no idea why there is a wordpress top bar even for visitors. can someone help?

    http://www.scootsafe.sg/

    I disable quite a lot of plugin except for wordfence, bbpress and buddypress however, it doesnt work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    just place this short of code inside your activated themes functions.php

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

    Thanks.

    Thread Starter sgtan2264

    (@sgtan2264)

    Hi this is for login users, isnt it.. I have a third party plugin, wp admin no show for it. What I mean is that, I see the wordpress bar even for non login users. It shouldnt be the case isnt it?

    Thread Starter sgtan2264

    (@sgtan2264)

    done it, but it doesnt work.

    This code works for both logged in and non logged in users, it looks like this is customized admin bar added by theme, can you please let me know which theme you’re using ?
    Thanks.

    Thread Starter sgtan2264

    (@sgtan2264)

    im already using sahifa theme..

    Thread Starter sgtan2264

    (@sgtan2264)

    for everyone who is helping me, thanks. but this is not abt registered users seeing the top admin bar. I have already installed wp admin no show and it wasnt like this earlier.

    I realize it is the buddypress problem. After deactivating, i dont see any bar. After updating the buddypress, i realize I have this problem.

    still have no idea how to resolve this issue.

    Thread Starter sgtan2264

    (@sgtan2264)

    i find that updating my buddypress automatically switch on the option for ‘Show the Toolbar for logged out users’

    feeling so silly, thanks a lot guys.

    Resolved.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘weird wordpress top bar for visitors’ is closed to new replies.