WordPress.org

Ready to get started?Download WordPress

Forums

Another WordPress Classifieds Plugin
[resolved] Add support for wp_enqueue_scripts (2 posts)

  1. ahuggins
    Member
    Posted 2 years ago #

    Hi, I would like to suggest a relatively minor code change that would support the enqueue_scripts function.

    Basically on line 243 of awpcp.php, if you change:
    wp_print_scripts

    To

    wp_enqueue_scripts

    Then theme editors or site editors that know what they are doing can turn off AWPCP scripts/styles from loading on every page of their site.

    If there is a conflict of some type, mention it in the comments and I'll see if I can figure it out. There is a way to load the scripts conditionally so that jQuery can be loaded first if that is an issue.

    For the way my site is set up it doesn't seem to cause a conflict but doing this would save an http request on all other pages/single pages.

    Thanks, and let me know if anything causes problems.

    http://wordpress.org/extend/plugins/another-wordpress-classifieds-plugin/

  2. awpcp
    Member
    Plugin Author

    Posted 2 years ago #

    Great suggestion, we'll check it out and if it's OK, we'll put it in shortly. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic