Remove WordPress Admin from IDX

Last Updated: Jul 19, 2016 08:34AM PDT

If you have a WordPress website you may be familiar with the WordPress Admin Bar. This toolbar shows up above your website when you are viewing it while logged into your WordPress Dashboard.
If you don't yet have it, follow these instructions to install the IMPress for IDX plugin.

If you create a Static Wrapper for your IDX pages while still logged in to your WordPress Dashboard and this Admin Bar is visible, it will get included in the wrapper for all IDX pages. This means all visitors will be able to see it and potentially click the links on it (Don't worry, without your WordPress login information they cannot access your dashboard). 

If you notice that the Admin Bar has accidentally been included in your Wrapper there are a few ways to fix it:

Option 1 - 

Make sure you are logged out of your WordPress Dashboard so that the Admin bar disappears and then recreate your Static Wrapper.
See Static Wrapper instructions here.


Option 2 (recommended) - 

Replace your Static Wrapper with a Dynamic Wrapper. The Dynamic Wrapper is a great improvement over the Static Wrapper as it does not need to be updated manually each time you make a change to your website design or layout. The Dynamic Wrapper keeps itself up-to-date automatically.
See Dynamic Wrapper instructions here.


Option 3 - 

You could use CSS to hide the admin bar but then it is still visible within the code or you could actually disable it for everyone who is not an admin by following these simple steps.


Paste the following code in your theme's functions.php file (Appearance -> Edit)

Disable Admin bar All Users but Admin
function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {


Also to disable the admin bar for all users paste the following code into the themes functions.php file

Disable Admin Bar For All Users

Contact Us

Data Services Provided By IDX, LLC
Content © 2018 IDX, LLC,
All Rights Reserved.
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found