Support » Themes and Templates » Remove header padding/margin on sides

  • Resolved christoofer

    (@christoofer)


    Hey, I am using the Twenty-Eleven template. I have deleted all of the header content and am trying to replace it with an image with a black div background.

    Ive gotten everything figured out except I can’t remove the padding or margins or whatever it is on either side of it.

    If anyone would like to see the code just specify which and I’ll be happy to post.

    Thank you, Chris

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Are you using a Child Theme?

    Honestly not entirely sure what that means. I am using the Twenty-Eleven template that WordPress comes set to by default. So I would assume the answer to your question is no.

    Michael

    (@alchymyth)

    Forum Moderator

    strongly consider to create a child theme to work with:
    http://codex.wordpress.org/Child_Themes

    it is not recommended to edit the default theme Twenty Eleven directly, as an unedited default is needed in case of probems.

    here is your padding:

    /* =Structure
    ----------------------------------------------- */
    
    body {
    	padding: 0 2em;
    }

    Thank you very much.

    As for the child theme, I had been unaware of that up until this point. I understand what you are referring to as the benefits of it though. I will remember that in the future.

    Once again, thank you alchymyth.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove header padding/margin on sides’ is closed to new replies.