Title: Center Header
Last modified: August 22, 2016

---

# Center Header

 *  Resolved [billtnj](https://wordpress.org/support/users/billtnj/)
 * (@billtnj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/)
 * Hello, I am using the hiero theme. I uploaded my own header image. How do I go
   about centering the header image in the header of my site?
 * Thank you in advance for your help.

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

 *  [bradchando](https://wordpress.org/support/users/bradchando/)
 * (@bradchando)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366622)
 * Is it possible to include a link to the site you are having the trouble with?
 *  Thread Starter [billtnj](https://wordpress.org/support/users/billtnj/)
 * (@billtnj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366664)
 * Sure – I have a header up right now – the site is audioshooter dot com.
 * Thanks!
 *  [Jan Cavan Boulas](https://wordpress.org/support/users/mj12982/)
 * (@mj12982)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366685)
 * Add this to your CSS file:
 *     ```
       .site-branding img {
       display: block;
       margin: 0 auto;
       }
       ```
   
 * Also, it’s perfectly fine to post links since you’re not posting an email address
   🙂
 *  Thread Starter [billtnj](https://wordpress.org/support/users/billtnj/)
 * (@billtnj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366743)
 * Hi Jan Cavan Boulas, I tried that code in my CSS file and it didn’t work. Any
   other ideas? Thanks!
 *  [Maruti Mohanty](https://wordpress.org/support/users/marutim/)
 * (@marutim)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366767)
 * Hi billtnj
 * You can do it by adding the below code in your theme’s style.css file.
 * I would advice you to do the changes using a [Child Theme](http://www.sourcexpress.com/wordpress-child-themes-use/)
   or by using a [My custom css plugin](https://wordpress.org/plugins/my-custom-css/)
   to keep the changes preserved even after the update
 *     ```
       .site-branding {
           float: none;
       }
       ```
   
 * The above should work, else just add “important” like below
 *     ```
       .site-branding {
           float: none !important;
       }
       ```
   
 *  [Jan Cavan Boulas](https://wordpress.org/support/users/mj12982/)
 * (@mj12982)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366789)
 * [@billtnj](https://wordpress.org/support/users/billtnj/)
 * That’s strange. Can you try this instead:
 *     ```
       .site-branding a img {
       display: block;
       margin: 0 auto;
       }
       ```
   
 * Like [@maruti](https://wordpress.org/support/users/maruti/) Mohanty said, it’s
   good to create a child theme so your changes are preserved even after the authors
   update this theme.
 *  [bradchando](https://wordpress.org/support/users/bradchando/)
 * (@bradchando)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366814)
 * Have you been able to get this working? I was able to center the header by simply
   changing the .site-branding css to be:
 *     ```
       .site-branding {
       margin: auto;
       max-width: 541px;
       }
       ```
   
 * Hope this helps!
 * Thanks,
 * Brad
 *  Thread Starter [billtnj](https://wordpress.org/support/users/billtnj/)
 * (@billtnj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366815)
 * Hello everyone, thank you so much for all of your help! I was able to get it 
   working by using this code:
 *     ```
       .site-branding a img {
       display: block;
       margin: 0 auto;
       }
       ```
   
 * Thank you again!
 * Bill
 *  [Maruti Mohanty](https://wordpress.org/support/users/marutim/)
 * (@marutim)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366877)
 * Hi Bill,
 * Great to know that, you got the issue resolved. Now can you please mark this 
   thread resolved, so that user looking for a similar issue gets the most out of
   it
 * Thanks

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

The topic ‘Center Header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hiero/1.8.4/screenshot.png)
 * Hiero
 * [Support Threads](https://wordpress.org/support/theme/hiero/)
 * [Active Topics](https://wordpress.org/support/theme/hiero/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hiero/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hiero/reviews/)

## Tags

 * [center](https://wordpress.org/support/topic-tag/center/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [image](https://wordpress.org/support/topic-tag/image/)

 * 9 replies
 * 4 participants
 * Last reply from: [Maruti Mohanty](https://wordpress.org/support/users/marutim/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/center-header-8/#post-5366877)
 * Status: resolved