WordPress.org

Ready to get started?Download WordPress

Forums

Q and A FAQ and Knowledge Base for WordPress
set dependcy when enqueue the javascript (2 posts)

  1. bassjobsen
    Member
    Posted 6 months ago #

    in line 79 add: array('jquery')

    wp_enqueue_script( 'q-a-plus', Q_A_PLUS_URL . '/js/q-a-plus.js', array('jquery'), $qaplus_options['version'], true );

    see also: http://bassjobsen.weblogs.fm/wordpress-development-properly-load-javascript-set-dependency/

    http://wordpress.org/plugins/q-and-a/

  2. megnicholas
    Member
    Posted 5 months ago #

    I agree, that is the way it should be done.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.