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.
- The topic ‘[Plugin: Another WordPress Classifieds Plugin] Add support for wp_enqueue_scripts’ is closed to new replies.