Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18879

    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

    #101242

    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.

    .

    #101243

    how can I solve this problem and load data from an external css file?

    #101244

    You can delete/comment out following line from eunoiaframeworkphpclass-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.

    #101245

    but if I leave things so that problems could I have?

    #101246

    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

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘strange Css code into home page html’ is closed to new replies.