I have a small bit of hourly-changing css and I want to
keep it in a second file (apart from style.css) and
load it after my theme's
I believe I can make it load before
style.css by setting its priority to the
style.css minus one (e.g. if the main style.css has a priority of 10, my bit of code would have a priority of 9).
But here's my problem: apart from trial and error I don't know how to identify, programmatically the priority of a style sheet. I know could simple use the method of halving to hone in on the value, but I'd rather not do that. It would be nice to learn a principled way of solving this problem. Perhaps there is a default priority of main-theme CSS file? If this is the case I can easily try the ($defaultPriorityValue - 1). Is this possible, and if not what is a good way to do this?
p.s. I do not want to enqueue inline styles in my
functions.php because I need to keep this code in a separate file
Although I found the functional solution I listed in the answers below, I would still like it if someone could explain if there is a way to id, programmatically, the priority of a sheet. Thanks!