Assume that we have a theme named parent_theme
. This theme's style.css
will be automatically included in the styles we deliver to the client.
My question is - when Wordpress "includes" style.css
, what $handle
does it use? By $handle
, I mean within the context of wp_enqueue_style()
. I started digging through the code to find the answer, but thought I'd ask here first.
I would assume it's the "stylesheet name", aka the name of the directory that contains the theme. I tried that, but it doesn't seem to work.
(Also, if you're curious, I'm asking because I have a child_theme
based on parent_theme
, and I need to make sure that all of the dependencies are correctly sorted out regardless of whether parent_theme
is in use or child_theme
is in use. I can get very close to what I want by simply leaving the $deps
parameter empty in my wp_enqueue_style()
calls in parent_theme
, but it would be awesome to have a little more fine-tuning control).
$handle
used for the defaultstyle.css
, I'd love to know! :)