• I am trying to inline my css by taking all of my css files detected by Google Pagespeed and pasting them all into my style.css. From what I’ve read, thats the best thing to do.

    After that I have to delete the calls for the stylesheets that I combined and thats located in the functions.php? See below for example.

    ‘// CDN for font awesome?
    if (Bunyad::options()->font_awesome_cdn) {
    wp_enqueue_style(‘smartmag-font-awesome’, (is_ssl() ? ‘https’ : ‘http’) . ‘://netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css’);
    }
    else {
    wp_enqueue_style(‘smartmag-font-awesome’, get_template_directory_uri() . ‘/css/fontawesome/css/font-awesome.min.css’, array(), Bunyad::options()->get_config(‘theme_version’));
    }’

    Should I delete that entire piece of code? Is that the “call” for http://myurl.com/wp-content/themes/smart-mag/css/fontawesome/css/font-awesome.min.css?ver=2.4.1 ?

    I believe my goal is to have the html call for only the style.css and I should have all my other CSS in the style.css to eliminate round trips when my page is rendering.

    Please help me out. Is this what I should be doing? Also where is my style.css called from?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Need help inlining CSS!’ is closed to new replies.