As I understand it, in main.js e can set javascript to fire on all page or specific pages. Is it possible to fire js on an array of pages?
Thanks!
As I understand it, in main.js e can set javascript to fire on all page or specific pages. Is it possible to fire js on an array of pages?
Thanks!
Use the WordPress body_class
filter to apply a common class to whichever pages you want, then use that class name in the router
Thanks Ben! I’ll go and give this a try!