Accommodating the WordPress.com toolbar in your layout

The WordPress.com toolbar will appear for all users logged into WordPress.com. Here’s how to conditionally adapt your page layout based on its presence/absence.

* make use of body_class, typically, in your header.php’s HTML body tag
* provide 25px of margin-top for cases where the admin bar is present

Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.