Title: [Plugin: WP-TopBar] Validation errors and Wp-TopBar
Last modified: August 20, 2016

---

# [Plugin: WP-TopBar] Validation errors and Wp-TopBar

 *  Resolved [niska](https://wordpress.org/support/users/niska/)
 * (@niska)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/)
 * Just added Wp-topbar to my blog. No special settings. And then I validated the
   HTML.
 * 2 Errors:
 * – An extra ” is added before the href attribute (“href=””)
    – The plugin adds
   html code before the body-tag
 * Can this be fixed?
 * [http://wordpress.org/extend/plugins/wp-topbar/](http://wordpress.org/extend/plugins/wp-topbar/)

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

 *  [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * (@thatwastaxing)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612373)
 * Yes, please fix the issue with the code appearing within the head tags rather
   than the body. Otherwise, works great.
 *  Plugin Author [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * (@rfgoetz)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612382)
 * I moved the HTML from the HEAD tags to prepended to the BODY via javascript. 
   Try version 3.03.
 *  Thread Starter [niska](https://wordpress.org/support/users/niska/)
 * (@niska)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612383)
 * Nice try – but I still get validation errors.
 * Could you consider adding the top bar using
 * add_action(‘wp_footer’, ‘your_function’);
 * and then moving it via javascript? Then the page will validate. Thanks
 *  [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * (@thatwastaxing)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612384)
 * Now I get no TopBar at all. 🙁
 *  Plugin Author [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * (@rfgoetz)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612385)
 * I can’t help with out having more info… what is your website
 *  Plugin Author [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * (@rfgoetz)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612386)
 * Niska, that is how the code is written.
 * See line 64 in v 3.03
 * add_action(‘wp_footer’, array( __CLASS__, ‘wptb_add_TopBar_Header_html’ ), 15);
 * Bob
 *  [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * (@thatwastaxing)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612390)
 * Bob g: It’s on a local server. I’ve uninstalled and reinstalled. With the topbar
   in the head tags, it worked. After you fixed the validation errors, it stopped
   working.
 *  Plugin Author [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * (@rfgoetz)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612391)
 * Append &debug to the wp-topbar admin page URL. When you reload the admin page,
   it will print out a number of messages. Copy all of them into a reply to this
   thread. The messages tell me how you have configured the topbar.
 * &debug sets a timer and will show the debug messages on the wp-topbar admin page
   for about a minute, So, if you remove &debug from the URL, the debug messages
   will still show up for about a minute. It will also add messages to the WordPress
   debug log for any page views of your website, if you have debug turned on, for
   that same time period.
 * Bob
 *  [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * (@thatwastaxing)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612393)
 * Here you go:
 *     ```
       WP-TopBar Debug Mode: in wtpb_check_for_plugin_upgrade
       WP-TopBar Debug Mode: Version 3.05
       WP-TopBar Debug Mode: end of wtpb_check_for_plugin_upgrade
       WP-TopBar Debug Mode: Server Timezone:UTC
       WP-TopBar Debug Mode: Current Time :1333485289-2012-04-03 20:34:49 (UTC)
       WP-TopBar Debug Mode: Starting Time:0-0-1970-01-01 00:00:00 (UTC)
       WP-TopBar Debug Mode: Ending Time  :0-0-1970-01-01 00:00:00 (UTC)
       WP-TopBar Debug Mode: Start Time is zero
       WP-TopBar Debug Mode: End Time is zero
       WP-TopBar Debug Mode: TopBar will display due to time settings and because it is enabled
       WP-TopBar Debug Mode: Cookie Name: wptopbar_adb2e8c677ecccd883ebf44735d2f094
       WP-TopBar Debug Mode: Cookie not found
       WP-TopBar Debug Mode: Not an iPhone/iPad/iPod Device
       WP-TopBar Debug Mode: Filename:/home/annabita/public_html/wp-content/plugins/wp-topbar/lib/
       WP-TopBar Debug Mode: --------------------------------------
       WP-TopBar Debug Mode: Using these "wptbAdminOptions" Values:
       WP-TopBar Debug Mode:  [wptb_version]: 3.05
       WP-TopBar Debug Mode:  [enable_topbar]: true
       WP-TopBar Debug Mode:  [topbar_pos]: header
       WP-TopBar Debug Mode:  [text_color]: #000000
       WP-TopBar Debug Mode:  [bar_color]: #d7e9f3
       WP-TopBar Debug Mode:  [bottom_color]: #86b2c9
       WP-TopBar Debug Mode:  [link_color]: #333333
       WP-TopBar Debug Mode:  [bottom_border_height]: 3
       WP-TopBar Debug Mode:  [include_pages]: 0
       WP-TopBar Debug Mode:  [invert_include]: no
       WP-TopBar Debug Mode:  [delay_time]: 5000
       WP-TopBar Debug Mode:  [slide_time]: 200
       WP-TopBar Debug Mode:  [display_time]: 0
       WP-TopBar Debug Mode:  [start_time]: 0
       WP-TopBar Debug Mode:  [end_time]: 0
       WP-TopBar Debug Mode:  [start_time_utc]: 0
       WP-TopBar Debug Mode:  [end_time_utc]: 0
       WP-TopBar Debug Mode:  [font_size]: 14
       WP-TopBar Debug Mode:  [padding_top]: 8
       WP-TopBar Debug Mode:  [padding_bottom]: 8
       WP-TopBar Debug Mode:  [margin_top]: 0
       WP-TopBar Debug Mode:  [margin_bottom]: 0
       WP-TopBar Debug Mode:  [respect_cookie]: ignore
       WP-TopBar Debug Mode:  [cookie_value]: 1
       WP-TopBar Debug Mode:  [past_cookie_values]: Array
       WP-TopBar Debug Mode:  [allow_close]: no
       WP-TopBar Debug Mode:  [close_button_image]: http://localhost/test/wp-content/plugins/wp-topbar/lib/images/close.png
       WP-TopBar Debug Mode:  [close_button_css]: float:right;
       WP-TopBar Debug Mode:  [link_target]: self
       WP-TopBar Debug Mode:  [bar_link]: http://localhost/test/contact/
       WP-TopBar Debug Mode:  [bar_text]: Our site is now in beta! We\'d love to hear your feedback, ideas, and suggestions.
       WP-TopBar Debug Mode:  [bar_link_text]: Drop us a line.
       WP-TopBar Debug Mode:  [text_align]: center
       WP-TopBar Debug Mode:  [bar_image]:
       WP-TopBar Debug Mode:  [enable_image]: false
       WP-TopBar Debug Mode:  [custom_css_bar]:
       WP-TopBar Debug Mode:  [div_css]: position:fixed; top: 40; padding:0; margin:0; width: 100%; z-index: 99999;
       WP-TopBar Debug Mode: --------------------------------------
       WP-TopBar Debug Mode: Tue, 03 Apr 2012 20:34:49 (UTC)
       WP-TopBar Debug Mode: Loading Options
       WP-TopBar Debug Mode: Completed Updating Options
       WP-TopBar Debug Mode: Version 3.05
       WP-TopBar Debug Mode: Displaying Options Page
       ```
   
 *  [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * (@thatwastaxing)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612394)
 * Aha! The problem is with text. The apostrophe isn’t being escaped, it seems. 
   I removed it and it works fine again.

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

The topic ‘[Plugin: WP-TopBar] Validation errors and Wp-TopBar’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-topbar_706d6d.svg)
 * [WP-TopBar](https://wordpress.org/plugins/wp-topbar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-topbar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-topbar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-topbar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-topbar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-topbar/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-topbar-validation-errors-and-wp-topbar/#post-2612394)
 * Status: resolved