Support for style.php in themes
|Reported by:||dglenny||Owned by:|
Themes for Wordpress must have a stylesheet file called "style.css" as their main file. I like to use PHP files for stylesheets, as it allows you to centralise colours and other nice things.
I work around this Wordpress design at present by altering the theme.php file, specifically:
$stylesheet_uri = $stylesheet_dir_uri . "/style.php";
Note that I still have to keep a style.css file around in the theme folder with the theme information.
It would be ideal if the engine either supported stylesheet name definition within a theme or included both .css and .php by default.
Change History (3)
comment:1 @Viper007Bond — 7 years ago
- Component changed from General to Template
- Keywords needs-patch added
- Version set to 2.5.1