digisavvy / some-like-it-neat

A WordPress Theme Using _s, Bourbon + Neat and Theme Hook Alliance
GNU General Public License v2.0
276 stars 61 forks source link

Use get_stylesheet_uri() #41

Closed justintadlock closed 9 years ago

justintadlock commented 9 years ago

The primary stylesheet URI for the theme should utilize the get_stylesheet_uri() function. Some plugins (and even child themes) might rely on the get_stylesheet_uri filter hook.

If, for some reason, you don't want the style.css file to load, you can filter get_stylesheet_uri to return a file of your choice. The important part is that the hook is executed.

digisavvy commented 9 years ago

Do you mean get_stylesheet_directory_uri()? I'm assuming as much.

justintadlock commented 9 years ago

No, I mean get_stylesheet_uri(), which is a different function. It's the function for loading the theme stylesheet. get_stylesheet_directory_uri() is for referencing the stylesheet directory.

Reference: http://codex.wordpress.org/Function_Reference/get_stylesheet_uri