Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Style from source to CSS stylesheet file?

Old Feb 11, 2009, 12:20 PM
2 posts · Feb 2009
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.

Old Feb 11, 2009, 04:01 PM
Flynn's Avatar
3,768 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.
Old Feb 12, 2009, 01:56 PM
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 ^^.
Old Feb 12, 2009, 04:35 PM
Flynn's Avatar
3,768 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


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 06:03 AM.

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