Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26047

    Hi.

    I need to add CSS via wp_enqueue_style that will load before any other scripts. How and where do I go about adding that?

    Thank you so much,

    Brent

    #129114

    Hi Brent,

    If you want the css to have the highest priority it actually needs to be added last. Otherwise you could just add it at the beginning of your functions.php.

    Regards,

    Devin

    #129115

    or add an !important tag to your CSS element.

    #129116

    While !important does force css to take priority, its a last resort since it tends to make further css edits down the road confusing or in turn need !important declarations as well.

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

The topic ‘How & where do I add CSS that will load BEFORE ANY OTHERS’ is closed to new replies.