Title: adding margin to theme
Last modified: August 20, 2016

---

# adding margin to theme

 *  Resolved [Vigil](https://wordpress.org/support/users/vigil/)
 * (@vigil)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/adding-margin-to-theme/)
 * I can’t figure out why wp_head is adding a margin to the top of my theme and 
   bumping everything down. Here is the current code I have at the top of my header.
   php file. The only plugins I have active are Akismet and Under Construction (
   only allows your site to be seen when you are logged in).
 * <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt);
   
   <html xmlns=”[http://www.w3.org/1999/xhtml”&gt](http://www.w3.org/1999/xhtml”&gt);
   <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> 
   <title></title> <link rel=”stylesheet” href=”<?php bloginfo (‘stylesheet_url’);?
   >” /> <?php wp_head(); ?> </head>

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

 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/adding-margin-to-theme/#post-2579861)
 * Margins are determined by CSS.
 * Please provide a link to your site so that we can look at the styles.
 * Cheers
 * PAE
 *  [Steffen Jørgensen](https://wordpress.org/support/users/jint/)
 * (@jint)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/adding-margin-to-theme/#post-2579862)
 * It makes room for the adminbar in your theme.
    If you don’t use the adminbar,
   you can add these lines to your functions.php and it will stop adding the margin:
 * // remove adminbar
    remove_action( ‘init’, ‘wp_admin_bar_init’ ); add_action(‘
   show_admin_bar’, ‘__return_false’ );
 *  Thread Starter [Vigil](https://wordpress.org/support/users/vigil/)
 * (@vigil)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/adding-margin-to-theme/#post-2579874)
 * Thanks, folks.
 * I felt real stupid after I realized I could just view my page source and see 
   exactly what wp_head was attaching to my header.
 * It was indeed the admin bar. I ended up going into my control panel to turn it
   off.

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

The topic ‘adding margin to theme’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [Vigil](https://wordpress.org/support/users/vigil/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/adding-margin-to-theme/#post-2579874)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
