• Hi,

    just recently changed a bit of my header to add a new widget. I had to center widget to position correctly, but just noticed everything is centered. I manually aligned about 5 posts but i have almost 5000. I know this is a quick fix, just cant find answer. Any help appreciated.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter carlab3

    (@carlab3)

    i’m using 3.8

    1) What theme are you using?
    2) Please post a link to your site, it is difficult to tell what is wrong without being able to examine it directly.

    Thread Starter carlab3

    (@carlab3)

    Thread Starter carlab3

    (@carlab3)

    i added the widget at the very top of the site and as you see most everything is centered

    Thread Starter carlab3

    (@carlab3)

    I was working with other threads here and was attempting to create a header widget but i think it attempted to create the widget section to the left and somewhat distorted that side. Ugh..

    lol…any help appreciated

    Somehow the ending header tag got deleted, so everything is showing up in the header. That is, when I do a view source of your page, I see this:

    <header>

    but not a matching this:

    </header>

    Thread Starter carlab3

    (@carlab3)

    i actually added text below to header
    <div align=”center”> <header>

    Thread Starter carlab3

    (@carlab3)

    and then i added the widget code

    Did you try doing a view source on your page? That DIV and HEADER elements that you added, as well as the widget code, show up at the very top, before everything else. That’s definitely not where they belong. Just run the site through the W3 Validator and see all of the coding errors.

    Thread Starter carlab3

    (@carlab3)

    ok, thanks

    Thread Starter carlab3

    (@carlab3)

    do you have any idea how I can use my widget code up in the header section? I removed what i had up there

    Does your theme support a widget area in the header? If not, you’ll probably have to create a child theme and edit a copy of the header.php file to add a widget area.

    You can also try posting a question in Cyberchimp’s support forum for the iFeature-free theme.

    Thread Starter carlab3

    (@carlab3)

    I figured it out, thanks. And just in case someone is needing a fix — all I did was put this code — <center>[code here without brackets]</center>

    OK, even though you got it to work, I’ll warn you that it’s a very non-standard way of coding; you have that <center> element at the very top of your source, before the DOCTYPE declaration. It won’t validate properly, and you may run into other problems in the future. It should be somewhere within the BODY element, instead.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘After editing header everything on my site is centered’ is closed to new replies.