• Hi

    I am new to WordPress. I am trying to make a quick change to the Twenty Twelve template (I do not have a child template set up). When I view the source code and use the console I can see it is the piece of code below causing the margin and I want to change this but cannot find where to do it.

    Any help would be much appreciated.
    Thanks, Kirsty

    <style type=”text/css” media=”screen”>
    html { margin-top: 28px !important; }
    * html body { margin-top: 28px !important; }
    </style>

Viewing 2 replies - 1 through 2 (of 2 total)
  • that code section is from the adminbar which you can control under dashboard – users – your profile – ‘Toolbar [ ] Show Toolbar when viewing site’

    if you mean the gap at the top of the theme, then this is set here as a top margin, near the end of style.css:

    body .site {
    		padding: 0 40px;
    		padding: 0 2.857142857rem;
    		margin-top: 48px;
    		margin-top: 3.428571429rem;
    		margin-bottom: 48px;
    		margin-bottom: 3.428571429rem;
    		box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
    	}
    Thread Starter kirstybash

    (@kirstybash)

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change top margin in Twenty Twelve theme’ is closed to new replies.