• Hey gang,

    I’m using a modified version of the Minimal theme by https://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:

    https://pando.mynewsitepreview.com/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter Shaun Scovil

    (@sscovil)

    @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:

    https://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?

    Thread Starter Shaun Scovil

    (@sscovil)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Theme 'Minimal' is adding unwanted styling at wp_head, can't figure out how…’ is closed to new replies.