WordPress.org

Forums

How to Center Header - Please help! (6 posts)

  1. Gothamista
    Member
    Posted 3 years ago #

    The header and tagline on my site are skewed to the left instead of centered. Could someone let me know how to change the code so that these are centered? I would appreciate your help so much!! The site is gothamista.com . The theme is Glitter and Lace by Genesis.

    [css code moderated - this is accessible from the link to your site - for general posting of code see http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

  2. Andrew
    Forum moderator
    Posted 3 years ago #

    Could you give us a link to your website or Pastebin.com of your HTML for a page with the problem?

    Also please wrap your code in the (code) button above the forum post textbox.

  3. cassihl
    Member
    Posted 3 years ago #

    In this section:

    #title-area {
    float: left;
    overflow: hidden;
    padding: 34px 0 0;
    width: 500px;
    }

    Remove float:left; and add in margin:auto;

  4. Gothamista
    Member
    Posted 3 years ago #

    Hi Andrew,

    Is this what you mean? I am new to wordpress and the comment board! Thanks so much!!

    I cant get the hyperlink to work, but the site is: gothamista.com

    [css code moderated - this is easily accessible from the link to your site]

  5. Andrew
    Forum moderator
    Posted 3 years ago #

    The CSS Cassihl recommended is correct.

    You need to use this CSS, but before you do, ensure you have either a;
    ☛ Child Theme - http://codex.wordpress.org/Child_Themes
    ☛ Custom Style plugin - http://wordpress.org/extend/plugins/custom-style/

  6. Gothamista
    Member
    Posted 3 years ago #

    I think it worked! The header still shows off center when I look at my site from Dashboard but when I open it through Safari its now centered. Thanks so much!

    Another question--my theme only comes with 1 sidebar (its a Child Genesis theme) but I want two sidebars so that I can have Sidebar-Content-Sidebar. Is there any way to add another sidebar?

    gothamista.com

Topic Closed

This topic has been closed to new replies.

About this Topic