Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Style from source to CSS stylesheet file?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 11, 2009, 12:20 PM
kartun11
 
2 posts · Feb 2009
Hi,
I noticed that in source of page there is a lot of style code. It makes pages loading slower and consume transfer every time page is requested. I want it to be in *.css file so it can be saved on visitor's disk.
I hope there is easy way to do this.

Cheers.
  #2  
Old Feb 11, 2009, 04:01 PM
Flynn's Avatar
Flynn
 
3,761 posts · Oct 2008
Munich, Germany
There are specific reasons for that although I am aware that it is not ideal.

You can copy the inline CSS from the source code of the browser rendered page, then paste it into the bottom of style.css, then delete or commment the whole dynamic CSS part in header.php.

After you've done this, CSS related theme option changes wouldn't propagate anymore.

So the above is something you should only do after you're done with all theme customizations.
  #3  
Old Feb 12, 2009, 01:56 PM
kartun11
 
2 posts · Feb 2009
Thanks, it works.
But isn't it possible to generate *.css file by PHP? I think it is, but I'm not experienced in PHP enough yet ^^.
  #4  
Old Feb 12, 2009, 04:35 PM
Flynn's Avatar
Flynn
 
3,761 posts · Oct 2008
Munich, Germany
Rendering .css as PHP would require changes in the web server setup and greatly reduce my install base so this is out of question. A .php file can be used as external CSS file but IE6 sometimes won't load that if it takes too long until that file is processed. It 's also not trivial to pull items from the WP database from an external non-standard file. I had a working version of that in an earlier 3.x version of Atahualpa

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting a Relative URL to the style.css file? tangch00 Atahualpa 3 Wordpress theme 0 May 9, 2009 02:38 AM
CSS style dropdown/flyout menus for sub-categories? BigG Sidebars & Widgets 1 Apr 8, 2009 05:24 PM
errors in style.css aninkling Atahualpa 3 Wordpress theme 1 Feb 26, 2009 05:59 PM
CSS file went to "0" bytes suddently Ponics Atahualpa 3 Wordpress theme 1 Jan 5, 2009 01:49 PM
Bug: with /wp-content/themes/atahualpa3/style.css.php chris Atahualpa 3 Wordpress theme 6 Dec 13, 2008 01:00 AM


All times are GMT -6. The time now is 12:18 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.