Title: center custom header
Last modified: September 24, 2023

---

# center custom header

 *  [vanbrel](https://wordpress.org/support/users/vanbrel/)
 * (@vanbrel)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/center-custom-header-2/)
 * Hi
 * I build a custom header- this is the code
 *     ```wp-block-code
       <p style="text-align: center;">[oceanwp_nav]</p>
   
       <h2 style="text-align: center;">William Woigk</h2>
       <h1 style="text-align: center;">Music  |  Sound  |  Media</h1>
       ```
   
 * the lines h2 and h1 do work perfectly; but the nav_bar alings left.
 * What is my fault? Do you have any idea?
 * Vanbrel

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

 *  Thread Starter [vanbrel](https://wordpress.org/support/users/vanbrel/)
 * (@vanbrel)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/center-custom-header-2/#post-17074878)
 * Oh sorry,
 * just found the solution – forget about my question
 * Ciao
 * vanbrel
 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/center-custom-header-2/#post-17077205)
 * Hello [@vanbrel](https://wordpress.org/support/users/vanbrel/),
 * I’m glad that you were able to resolve that.
    Should you have any further questions,
   please let us know.
 * Best Regards

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

The topic ‘center custom header’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Shahin](https://wordpress.org/support/users/skalanter/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/center-custom-header-2/#post-17077205)
 * Status: not resolved