WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to push header up? - Twenty Ten (10 posts)

  1. twistedkeys
    Member
    Posted 2 years ago #

    I deleted the title and tagline above the header because it wasn't flush enough with the site. I thought the header would have popped back up, it did kinda did, but there's still some space there.

    How do I get it to go up more? Where's the code located that has the pixel count for it?

    Here's the site: http://liveatwillowcreek.com/paintball/

  2. lee@digitalacorn
    Member
    Posted 2 years ago #

    add this to your css file

    #site-description {display: none;}
    h1#site-title {display: none;}

    Also the header itself has some padding which you may or may not want, toggle the padding px till you get it right. (also add to css file)..

    #header {padding: 30px 0 0;}

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Don't edit the Twenty Ten theme. Instead create a child theme for your changes.

  4. twistedkeys
    Member
    Posted 2 years ago #

    I don't see the benefits of having a child theme especially when I'm making such a minor change?

    Lee, where should I add those in the css file?

  5. James Duffell
    Member
    Posted 2 years ago #

    @twistedkeys

    If the theme gets an update in the future it will override any changes you make, maybe not a big deal for a small change but if you start making more minor changes you maybe in for a bit of a shock next time you let WordPress run some updates.

    ^JD

  6. twistedkeys
    Member
    Posted 2 years ago #

    Thanks James, though if a child theme takes more than 2 minutes to install and setup (if applicable) then it will be too much work compared to my small change(s).

  7. James Duffell
    Member
    Posted 2 years ago #

    @twistedkeys

    Very true, it's more a case of good practice / personal preference.

    All the best

    ^JD

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Sorry but that's just not true. The next time you update your theme, all of your changes will be wiped out. Do the sensible thing - create a child theme.

  9. twistedkeys
    Member
    Posted 2 years ago #

    I'm still unsure as to where exactly I should place Lee's code in the css file?

  10. twistedkeys
    Member
    Posted 2 years ago #

    Under layout.... I love you Lee. *Resolved*.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.