{"id":4024,"date":"2013-12-16T19:30:22","date_gmt":"2013-12-17T03:30:22","guid":{"rendered":"http:\/\/g-liu.com\/blog\/?p=4024"},"modified":"2013-12-16T19:30:22","modified_gmt":"2013-12-17T03:30:22","slug":"wordpress-admin-bar-toggle-bookmarklet","status":"publish","type":"post","link":"https:\/\/g-liu.com\/blog\/2013\/12\/wordpress-admin-bar-toggle-bookmarklet\/","title":{"rendered":"WordPress users &#8212; Use this handy bookmarklet to hide the Admin bar"},"content":{"rendered":"<p>That ubiquitous floating Admin bar at the top is really helpful in a lot of situations, but sometimes it&#8217;s better to view your website without it. For example, you might want to simulate what your site looks like to a regular user, or perhaps you just want to take a nice screenshot.<\/p>\n<p>Whatever the purpose, I&#8217;ve created a handy bookmarklet for toggling the bar. Simply drag it into your Bookmarks bar and click it when you need to hide your admin bar. Click it again to show the bar.<\/p>\n<p>Drag me to your Bookmarks: <a href=\"javascript:void(function(){var a=document.getElementById('wpadminbar');if(a===undefined||a===null){alert('Error: could not toggle admin bar. You must be on a WordPress website, logged in as an admin.');return;}if(a.style.display==''){a.style.display='none';}else if(a.style.display=='none'){a.style.display='';}else{a.style.display='';} })()\" style=\"border:1px solid #999;display:inline-block;padding:0.2em;text-decoration:none;font-weight:bold;\">Toggle admin bar<\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><!-- AddThis Related Posts generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>That ubiquitous floating Admin bar at the top is really helpful in a lot of situations, but sometimes it&#8217;s better to view your website without it. For example, you might want to simulate what your site looks like to a regular user, or perhaps you just want to take a nice screenshot. Whatever the purpose, I&#8217;ve created a handy bookmarklet &#8230;<!-- AddThis Advanced Settings generic via filter on wp_trim_excerpt --><!-- AddThis Share Buttons generic via filter on wp_trim_excerpt --><!-- AddThis Related Posts generic via filter on wp_trim_excerpt --><\/p>\n","protected":false},"author":2,"featured_media":4025,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"#WordPress users -- Use this handy bookmarklet to hide the Admin bar","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[52,58],"tags":[],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/12\/wpadminbar.png","jetpack_shortlink":"https:\/\/wp.me\/p2Zt3y-12U","_links":{"self":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts\/4024"}],"collection":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/comments?post=4024"}],"version-history":[{"count":6,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts\/4024\/revisions"}],"predecessor-version":[{"id":4031,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts\/4024\/revisions\/4031"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/media\/4025"}],"wp:attachment":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/media?parent=4024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/categories?post=4024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/tags?post=4024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}