Optimize WordPress theme stylesheet inclusion

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)

Yesterday I was workin on latest project, where I needed to include WordPress Child theme’s stylesheet in blog. Following good practise I wanted to escape from using @import in my style.css. By fast research and tests, found way how to optimize that inclusion (code snippet here: New way to include WordPress Theme Stylesheet in 2012).

Today @konstruktors shared link to latest WordPress default theme TwentyTwelve, where style.css is included same way.

I still see space for optimize my code, but nice to see that I am going same way as future release of WordPress Theme.

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Optimize WordPress theme stylesheet inclusion, 5.0 out of 5 based on 1 rating

Yesterday I was workin on latest project, where I needed to include WordPress Child theme’s stylesheet in blog. Following good practise I wanted to escape from using @import in my style.css. By fast research and tests, found way how to optimize that inclusion.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>