Title: adding .js to header alignment
Last modified: August 20, 2016

---

# adding .js to header alignment

 *  [silsurf](https://wordpress.org/support/users/silsurf/)
 * (@silsurf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/adding-js-to-header-alignment/)
 * I am trying to add a piece of .js in my header in the form of a bannerzest banner.
 * I foulnd a plug in entitled “add to head” that allows for adding code above the
   header file with re-writing the header file.
 * The .js I input shows up aligned left instead of aligned center with the rest
   of the blog theme.
 * Any help on getting this code to align center would be appreciated.
    [ bannerzest banners
 * code I am inputing
 * <script type=”text/javascript” src=”[http://frenchtoastandhugs.com/bannerzest/bzLoader.js”></script><noscript><p](http://frenchtoastandhugs.com/bannerzest/bzLoader.js”></script><noscript><p)
   style=”background-color:#ffffff;color:#000000;padding:1em;”>Your browser doesn’t
   support JavaScript or you have disabled JavaScript.</p></noscript><div id=”SWBZ96742F9BC4594B7FAD7A”
   ></div><div id=”LKBZ96742F9BC4594B7FAD7A”></div>
 * [
    add to header plug in
   
    [ website
 * thanks

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

 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/adding-js-to-header-alignment/#post-2482355)
 * Content alignment is dealt with by CSS or HTML, not JavaScript. Find the div 
   you want to align, then set it’s css property to text-align:center
 *  Thread Starter [silsurf](https://wordpress.org/support/users/silsurf/)
 * (@silsurf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/adding-js-to-header-alignment/#post-2482356)
 * thanks so much.
 * I know I can easily muck things up when adding code, can you point to towards
   the “div” that I would “set” within this string?
 * <script type=”text/javascript” src=”[http://frenchtoastandhugs.com/bannerzest/bzLoader.js”></script><noscript><p](http://frenchtoastandhugs.com/bannerzest/bzLoader.js”></script><noscript><p)
   style=”background-color:#ffffff;color:#000000;padding:1em;”>Your browser doesn’t
   support JavaScript or you have disabled JavaScript.</p></noscript><div id=”SWBZ96742F9BC4594B7FAD7A”
   ></div><div id=”LKBZ96742F9BC4594B7FAD7A”></div>
 *  Thread Starter [silsurf](https://wordpress.org/support/users/silsurf/)
 * (@silsurf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/adding-js-to-header-alignment/#post-2482357)
 * I think I got it, thanks for your time and post!

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

The topic ‘adding .js to header alignment’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [silsurf](https://wordpress.org/support/users/silsurf/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/adding-js-to-header-alignment/#post-2482357)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
