I want to specify which css file gets loaded when the user clicks on “Appearance > Editor”. However, its always loading style.css for some reason.
Any way to enforce that a specific file gets loaded there?
I want to specify which css file gets loaded when the user clicks on “Appearance > Editor”. However, its always loading style.css for some reason.
Any way to enforce that a specific file gets loaded there?
You must be logged in to post a comment.
This seems to be controlled by global
$file
variable, which is filled from request (GET or POST) by WordPress. So you will need to pass file you want in request or hook somewhere and override value of the variable. If latter be careful that you don’t lock editing to single file altogether.See source for details.