@import is not recommended anymore (Swift Modern)

Forums Forums SwiftThemes Bug report and suggestions. @import is not recommended anymore (Swift Modern)

This topic contains 1 reply, has 1 voice, and was last updated by  Pablo Mandado 5 years, 4 months ago.

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

    Pablo Mandado
    Participant

    <div class=”site-info”>Site url: http://www.workraw.com<br>Version:7.2.3</div>After buying the Modern Child theme I noticed that the scores from speed testing websites where slightly worse, and some complaint about the @import you used in the functions of the child theme.

    Reading about it I found that “the previous method was to import the parent theme stylesheet using @import: this is no longer best practice. The correct method of enqueuing the parent theme stylesheet is to add a wp_enqueue_scripts action and use wp_enqueue_style() in your child theme’s functions.php.”

    Found here:
    http://codex.wordpress.org/Child_Themes

    I tried to replace it myself, but I might be making some mistake because it doesn’t load the style from the parent theme.

    Could you update the child theme with this changed it?

    Thank you!

    #31127

    Pablo Mandado
    Participant

    Thanks for your email, when could it be implemented?

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

You must be logged in to reply to this topic.