hello, why if I see the source of my home page I see a lot of css code? at the start there's wrote <! - custom styles in September at your backend ->
but I did not put any custom style ..
anyway why all this css is not imported from an external file?
thanks
strange Css code into home page html
6 posts from 3 voices-
Posted 6 months ago #
-
Probably the main reason is the performance (server side) - the css styles are generated dynamically based on your theme options/settings and an external stylesheet does not support dynamic code. Thus Kriesi would need to use a php script to generate the styles and he'd need to load the wordpress framework, etc. in the stylesheet script again because of the theme settings data, etc.
.Posted 6 months ago # -
how can I solve this problem and load data from an external css file?
Posted 6 months ago # -
You can delete/comment out following line from eunoia\framework\php\class-style-generator.php:
add_action('wp_head',array(&$this, 'create_styles'),1000)This will remove the css code from the head section. If you want to keep the current style code copy/paste the css code from the html file into a stylesheet (eg css/custom.css) first. However note that you'll also break some theme options (Theme Options > Styling) and you won't be able to change the colors, etc. by using the theme options panel.
Posted 6 months ago # -
but if I leave things so that problems could I have?
Posted 6 months ago # -
Hi gianlucatursi,
I don't understand the question but I'll try to expand a bit more on what Dude was saying.
You can add the css that is generated into your custom.css file so that it isn't loaded in dynamically. Then remove the line in the theme that creates the code.
The end result is a bit faster of page loading but you can't alter the color options and such through the theme settings because they aren't being generated anymore.
Regards,
Devin
Posted 6 months ago #
Reply
You must log in to post.














