# WordPress line coming on top, even if the user is not admin

**URL:** <https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824>\
**Category:** HivePress\
**Created:** [July 6, 2026, 4:19pm UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824 "2026-07-06T16:19:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishcap619](https://community.hivepress.io/user_avatar/community.hivepress.io/ishcap619/32/13556_2.png) [@ishcap619](https://community.hivepress.io/u/ishcap619)\
**Post date:** [July 6, 2026, 4:19pm UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824/1 "2026-07-06T16:19:50Z")

</div>

Hello, In rentalhive, the wordpress lines are coming on the top of every page UI. The user is not Admin just a normal sign-in user. Please tell me how to remove that? Thanks.

 ![image](https://community.hivepress.io/uploads/default/original/2X/5/516368631b50e9c8bfe3c5f130aaaeb5617e9e0f.jpeg)

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [July 6, 2026, 6:37pm UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824/2 "2026-07-06T18:37:23Z")

</div>

Hi @ishcap619,

You can add the following PHP snippet to your theme’s `functions.php` file, or use a plugin like [Code Snippets](https://wordpress.org/plugins/code-snippets/) instead.

Afterwards, the Admin bar will be hidden for all users except Admins.

```auto
add_filter('show_admin_bar', function () {
    return current_user_can('manage_options');
});

```

I hope this helps!

Cheers,  
Chris ✌

---

<div class="post-metadata">

**Author:** ![ishcap619](https://community.hivepress.io/user_avatar/community.hivepress.io/ishcap619/32/13556_2.png) [@ishcap619](https://community.hivepress.io/u/ishcap619)\
**Post date:** [July 7, 2026, 9:14am UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824/3 "2026-07-07T09:14:01Z")

</div>

Thank you!!

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [July 7, 2026, 3:08pm UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824/6 "2026-07-07T15:08:13Z")

</div>

Hi,

It looks like the user was created manually via WordPress Dashboard \> Users, because users who register through the frontend do not have this toolbar by default, it is hidden automatically.

However, if you want to make sure the toolbar is always hidden, you can use the suggested code snippet.

When creating a user manually from the WordPress dashboard, there is usually a checkbox like “Show Toolbar when viewing site” that can be unchecked to hide it for that user.

You can find this setting by opening the user’s profile in the WordPress dashboard.

Hope this helps

---

<div class="post-metadata">

**Author:** ![ishcap619](https://community.hivepress.io/user_avatar/community.hivepress.io/ishcap619/32/13556_2.png) [@ishcap619](https://community.hivepress.io/u/ishcap619)\
**Post date:** [July 7, 2026, 5:04pm UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824/7 "2026-07-07T17:04:44Z")

</div>

Thank you so much! I found that setting in user’s profile.

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [July 7, 2026, 5:30pm UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824/8 "2026-07-07T17:30:21Z")

</div>

Glad to help!

If you find HivePress useful, we would really appreciate it if you could take a moment to leave a review on the [WordPress repository](https://wordpress.org/support/plugin/hivepress/reviews/) or [Trustpilot](https://www.trustpilot.com/review/hivepress.io). Your feedback means a lot to us and makes a real difference in helping us grow.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [August 6, 2026, 5:30pm UTC](https://community.hivepress.io/t/wordpress-line-coming-on-top-even-if-the-user-is-not-admin/17824/9 "2026-08-06T17:30:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
