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)
1
2
3
4
5
6
7
|
add_action( 'after_setup_theme' , 'remove_admin_bar' ); function remove_admin_bar() { if (!current_user_can( 'administrator' ) && !is_admin()) { show_admin_bar(false); } } |
Also to disable the admin bar for all users paste the following code into the themes functions.php file
1
|
show_admin_bar(false); |