WordPress.org

Forums

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

  1. bassjobsen
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Q and A FAQ and Knowledge Base for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.