WordPress.org

Ready to get started?Download WordPress

Forums

[Twenty Twelve] How to remove margins(?) at sides (11 posts)

  1. Czarne Baranke
    Member
    Posted 1 year ago #

    Sorry for bother, but I can't find solution for my problem.

    I want to remove left and right margins so I won't have white space at the sides of my site.
    To be more specific:
    http://s13.postimg.org/uvcsbqmwn/screen.png

    I really don't know how to remove that. I want to do so because I want my header picture stick to the right edge of the site.
    Any suggestions?

    Yours sincerelly,
    CB.

  2. Czarne Baranke
    Member
    Posted 1 year ago #

    I forgot the link for the site:
    http://czarnebaranke.pl/

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    Do not edit the Twenty Twelve theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes. Or install a custom CSS plugin.

  4. Czarne Baranke
    Member
    Posted 1 year ago #

    Okay, done, I've created child theme. Next step?

  5. alchymyth
    Forum Moderator
    Posted 1 year ago #

    body .site {
    	padding: 0;
    	margin-top: 0;
    	margin-bottom: 0;
    	box-shadow: none;
    }
  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Try using Firefox with the Firebug add-on (or whatever developer tool is available in your web browser) to identify which CSS rules in the parent you need to over-ride in the child's stylesheet.

  7. Czarne Baranke
    Member
    Posted 1 year ago #

    Thanks a lot, guys!

  8. Czarne Baranke
    Member
    Posted 1 year ago #

    One more thing though - I would like to remove duplicated site name (for example - at "Co Baranke jest?"), but still have post titles just like at the main site (ex. "Hello world").
    How to do that?

    Best regards,
    CB.
    http://czarnebaranke.pl/

  9. alchymyth
    Forum Moderator
    Posted 1 year ago #

  10. roguewavemedia
    Member
    Posted 6 months ago #

    Alchynyth. Thanks for the custom css as it worked like a charm. What would I have to do to create padding or margin in the header content text area and footer? I thought I had it but I must be missing a part. Thanks for any thoughts on this.

  11. haddenjw
    Member
    Posted 5 months ago #

    This was very helpful. Once I used the code, `body .site {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
    }`

    The context on my site was too jammed/close to the background color. I either need to add margin or padding to my context or stretch my Header (versus removing the margin from the whole page)

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic