WordPress.org

Ready to get started?Download WordPress

Forums

wp_enqueue_style dependencies not working (1 post)

  1. Keep2theCode
    Member
    Posted 2 years ago #

    I wrote two custom plugins for a client, and each one enqueues its own style sheet. But though I added the first .css as a dependency for the second, the second one still loads before the first.

    wp_enqueue_style( 'second_style', array('first-style') );

    Thanks in advance for any help.

Topic Closed

This topic has been closed to new replies.

About this Topic