Semi-new to WordPress, so apologies is this is an obvious question!
I’m trying to execute some JavaScript on a WordPress site, but only on the child pages of a specific parent page – so, I have example.com/books, and I want the script to run on example.com/books/foo, example.com/books/bar, example.com/books/wee, and so forth. I don’t want it to run on example.com/books.
I know that I could just add in the script on each individual page, but I have other people editing the site who may add new book child pages, and they will not feel comfortable adding in Javascript.
Any solutions?