Can I specify that custom.css gets loaded at Appearance > Editor instead of style.css?

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?

Related posts

Leave a Reply

1 comment

  1. 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.