[wp-trac] [WordPress Trac] #7048: Support for style.php in themes

WordPress Trac wp-trac at lists.automattic.com
Wed May 28 03:37:40 GMT 2008


#7048: Support for style.php in themes
-------------------------+--------------------------------------------------
 Reporter:  dglenny      |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.7      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7048>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list