[resolved] Remove header padding/margin on sides (5 posts)

  1. christoofer
    Posted 3 years ago #

    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

  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Are you using a Child Theme?

  3. christoofer
    Posted 3 years ago #

    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.

  4. Michael
    Forum Moderator
    Posted 3 years ago #

    strongly consider to create a child theme to work with:

    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;
  5. christoofer
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic