Forums

wp_enqueue_style dependencies not working (1 post)

  1. Keep2theCode
    Member
    Posted 10 months 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.

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 10 months ago by Keep2theCode
  • This topic is not resolved
  • WordPress version: 3.4.1