WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. christoofer
    Member
    Posted 1 year 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
    Forum Moderator
    Posted 1 year ago #

    Are you using a Child Theme?

  3. christoofer
    Member
    Posted 1 year 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. alchymyth
    Forum Moderator
    Posted 1 year ago #

    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;
    }
  5. christoofer
    Member
    Posted 1 year 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