admin bar is not hidden

Posted in: Newsmag
Post count: 28

Hello,

I’m trying to disable the admin bar, on the front page of my site. I did it by going to word press user account settings to uncheck “show tool bar where. viewing site”. this work for admin viewing the front end, but for regualr subscribed users it is still showing.

I’m wondering if the theme has code to over ride this setting. any idea how I could hide it for non admin users?

  • This topic was modified 7 years by yinako.
Post count: 23312

Hi,

Do you are referring on the AMP? Provide some useful screenshots with your settings so I will be able to provide a more accurate response.

Thank you!

Post count: 28

Can you see the screenshot here: https://photos.app.goo.gl/qT2tMYJpEQfVRbCQA
its the bar highlighted in red, I want to hide this for none admin users.

Post count: 23312

Hi,

I have checked your website and the admin bar does not appear when you are not logged in, as you can see here -> https://www.screencast.com/t/DlbiaAdvOWJ This is the default WordPress functionality.

Thank you!

Post count: 28

sorry, I just fixed it this morning. I had to overwrite it with

add_filter(‘show_admin_bar’, ‘__return_false

with higher priority. I think in the code somewhere it is always setting this on.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newsmag’ is closed to new topics and replies.