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

  1. ahuggins
    Posted 4 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:



    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.


  2. awpcp
    Plugin Author

    Posted 4 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

  • AWPCP - Classifieds Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic