• Hello all. I’m new here since i’m doing my first theme. and lo and behold i’ve run into trouble. here is the case.

    visible whitespace gets inserted into my theme along with a whole lot of stuff I never intended.

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

    seems to be the culprit.

    If I remove the wp_head(); line at the end of my <head> section, the problem is solved.

    but, of course I don’t want to remove the wp_head hook. I’m pretty sure it’s something really simple even noobish but could not find it.
    note: my wordpress installation is otherwise brand new. no plugins are activated.

    the theme is being developed at http://185.12.14.82/future4talent

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try visiting Users > Your Profile and checkbox don’t show toolbar. Also, clear browser cache.

    I’m not sure what your intent is as far as the CSS rule that you posted. Do you want every element to have a top margin of 28px?

    Are you referring to the white space at the bottom of the page? Your secondary menu isn’t entirely visible in the footer because you have a CSS rule that sets the #footer height to 96px. That’s why it looks like you have a bunch of white space at the bottom. I don’t know if you intended to have that secondary menu there or if you were planning on removing it. If you are leaving it in, then set the #footer height to auto. Otherwise, take out the secondary menu and the whitespace will disappear.

    Other than that extra white space at the bottom, I don’t know what other white space you might be referring to. Was there something else?

    Thread Starter timwaagh

    (@timwaagh)

    thanks paul 🙂 .that solved it.

    CrouchingBruin. thats css that got inserted not by me but by the system. i should have been more clear.

    the bottom menu isn’t done yet. the intent is it will go to the right hand side in two columns

    This only occore when you are loged in, the margin top is to let your website display under the admin bar (and not behind). when youre logged out the css disapears.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘why does white space get inserted?’ is closed to new replies.