Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1275936

    I’m seeing in GTMetrix that I should avoid the “@import url(‘style-special.css’)” tag within: Child Theme style.css. Apparently, it slows down the site. They recommend putting it in the header (or footer?). If so, what would you recommend. And what would be the script to use?

    Thanks!

    #1276247

    Hey laptophobo,

    You can try adding it using a function in functions.php instead:

    function laptophobo_add_styling_header(){
    ?>
    Your styling goes here
    <?php
    }
    add_action('wp_head', 'laptophobo_add_styling_header');

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.