What is the most effecient way of enqueuing scripts based on the current plugins template?
In terms of best practices what is the best way of doing this? In my child theme I wanted to enqueue scripts based on the current Woocommerce product template. I achieved this by copying the template to my child theme and overriding it by enqueuing the scripts before the wp_head() call. This solution works but is there a better method?
010 months 2022-08-25T18:32:11-05:00 2022-08-25T18:32:11-05:00 0 Answers 0 views 0
Leave an answer