Shaun Scovil
Member
Posted 12 months ago #
Hey gang,
I'm using a modified version of the Minimal theme by http://rizzlestudios.ath.cx/ (site is down) and some crazy how it is adding unwanted style tags at the wp_head() hook on a fresh install with no plugins installed and nothing in the functions.php!
This is what's showing up in my header, just before the closing head tag:
[Code moderated as per the Forum Rules. Please use the pastebin]
Can someone please restore my sanity by explaining to me how on earth this is happening??
Here is one of the development sites I'm working on, with a fresh install of this theme, in case you need to check it out:
http://pando.mynewsitepreview.com/
Probably coming from WordPress itself.
Certain script/link/meta tags are inserted by WordPress. For example, if the Admin Bar is set to display, the appropriate styles and scripts are added. Since it's a core feature, it appears on brand new fresh installs.
Shaun Scovil
Member
Posted 12 months ago #
@trepmal: Thanks for the response. That would make sense, except that one of the unwanted lines actually disables the admin bar -- and I'm pretty sure that is enabled by default in WP. If I switch to TwentyTen it's there...
So here's a pastebin link to the unwanted HTML I'm getting at wp_head, which was modded out of the post above:
http://pastebin.com/hxNEd9JE
Any other place this could be coming from on a fresh install?
I'm assuming you've already double-checked that nothing is unnecessarily hard-coded into header.php?
Shaun Scovil
Member
Posted 12 months ago #
Yep. I went through and deleted lines one at a time, just to see if this was the unexpected byproduct of something else...ended up just hard-coding the reverse of one style tag to get rid of the top margin.