Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   External stylsheet (http://forum.bytesforall.com/showthread.php?t=759)

msjones Mar 14, 2009 11:46 AM

External stylsheet
 
I am using your Atahualpa 3 theme. I have played with the theme options to get it looking the way I want. When looking in the page source I notice that Atahualpa is inserting the css inline instead of linking to external stylesheet. So I end up with over 700 lines of css code in my header. It looks like that css is coming from the options I selected under "Atahualpa theme options" from wordpress menu. Is there a way to have it link to the stylesheet rather than inserting it inline?
Thanks

heyjudejam Mar 18, 2009 03:16 PM

I just started using this theme and I find that a major drawback as it doesn't coincide with the current web standards of separating style from code. Maybe a revision will change this?

msjones Mar 20, 2009 10:12 AM

I came across this while reading the README.txt in the Atahualpa directory.

Quote:

- The actual CSS styles for Atahualpa3 are located in style.css and header.php
After you're totally done with all your customizations, you could view the source
code of your site in the browser, cut the CSS rules from the header section, and paste them at the
bottom of style.css. Then remove the dynamic CSS part from header.php. That would save around 8-12 kbyte per pageview.
Might be what we're looking for!

owenl Mar 20, 2009 02:16 PM

Quote:

Originally Posted by heyjudejam (Post 3214)
I just started using this theme and I find that a major drawback as it doesn't coincide with the current web standards of separating style from code. Maybe a revision will change this?

The problem for Flynn in doing this is that he is abstracting the design into the theme options in order to make the theme really customizable for ordinary users. But you cannot do that with wordpress and keep code and style separate. He used to do the only halfway trick you can which is to use a style.php file, but the wordpress people told him that would break in future versions of wordpress, so he is doing what he can.

Incidentally, if you use the HTML/CSS options page in the theme options and dump CSS overrides into that, they will all work - but it is your responsibility to make sure they don't override other css options...


All times are GMT -6. The time now is 04:14 PM.

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