My child theme is loading the stylesheet twice… ?
-
Not sure if this is theme specific, but I’m apparently having some issues with a recently installed child theme.
This is my site as it sits now: https://getsrsly.com/
A little history:
A couple of days ago, after reading of the importance of doing so, I installed a child theme plugin to create a Hatch child. Very cool plugin with great features, but my page formatting was a little buggy and I feared I was experiencing some plugin conflicts. So this morning I decided to disable and delete the child theme plugin (via the WordPress interface) and create a child theme “by hand” via FTP. I followed a simple tutorial, activated the child theme within WordPress, and went back to work on my site.
However, just a bit ago I posted regarding another issue and was informed by a moderator that my child theme seems to be loading a stylesheet twice.
I do not know if this is how the Hatch theme is intended to work, as below the CSS input box in Appearance>Theme Settings>Custom CSS it says “It would overwrite any default or custom theme settings.”
Does this mean that this inbred ability to tweak CSS within the theme is, in a way, already creating a child? Is a child theme not necessary if I customize my CSS via this window? (I am so new to all of this, I still don’t have a grasp on how the child interacts with the default theme.)
To add to this, I’m having trouble finding some custom CSS I added earlier in the week – possibly via the child theme plugin. I cannot find these code snippets, but the effects are still active! (Faded hover effect for my home page images.)
So do I possibly have three stylesheets in operation?
Here’s the code I’ve added over the past week via my Custom CSS box within the Hatch theme Settings:
.home.singular-page .hentry .entry-title { position: absolute; clip: rect(1px, 1px, 1px, 1px); } .home.singular-page #content { width: 68.0851%; } .home.singular-page.page-template-fullwidth #content { width: 100%; } .home.singular-page .hentry { width: auto; height: auto; } #menu-primary { font-size: 1.40em; font-style: none; width: 60%; margin: 60px 0 0 0; float: right; position: relative; z-index: 99; } #menu-primary li a { line-height: 1em; margin-left: 1em; display: block; font-weight: bold; margin: 0 5px; padding: 0px 10px; } #header { clear: both; float: left; width: 100%; margin: 40px 0 0 0; border-bottom: solid; } #header a img:hover { opacity: 1; } .menu .sf-with-ul { background: none; }
And here’s the image hover code that I now cannot find:
a img{ opacity:1; filter:alpha(opacity=100); /* For IE8 and earlier */ } a img:hover{ opacity:0.6; filter:alpha(opacity=60); /* For IE8 and earlier */ }
I have not touched the actual CSS within the new child theme.
Thanks so much for any help!
- The topic ‘My child theme is loading the stylesheet twice… ?’ is closed to new replies.