Stylesheet enqueue problem after upgrade to 188.8.131.52
I updated to v184.108.40.206 from the previous version and am now noticing 2 related issues with how/when stylesheets are enqueued.
I’m running WP 3.6 with a child theme of Responsive, and have tried uninstalled all plugins to see if there was a conflict(there wasn’t), cleared cache’s, etc.
Issue #1: I noticed there was a problem because the css written within media queries was not over riding base styles. For instance, columns remained floated in small screen views, but float:none should have wiped out float:left at that viewport width. Below I’ve listed the order in which the stylesheets load. I applied a quick fix by moving line 650 to line 657 in Responsive’s functions.php file (includes/functions.php). This simply moved the media queries stylesheet so that it loads last. Wouldn’t it be better to just include all of Responsive’s media queries into the main stylesheet?
Issue #2: You’ll notice that my child theme style.css loads 2x (based on the id’s, the 1st stylesheet should be Responsive’s base stylesheet, not the child theme’s). I found this thread that says the fix to my media queries problem is to remove the @import from the child theme’s style.css. I presume the reason for this is because Responsive’s style.css should be loading.
‘ id=”responsive-style-css” href=”site/wp-content/themes/responsive-child/style.css?ver=220.127.116.11
Anyone else experiencing the same thing? Sorry for the long post, but wanted to provide the details. Here’s the site in question.
- The topic ‘Stylesheet enqueue problem after upgrade to 18.104.22.168’ is closed to new replies.