The code below allow me to use a different CSS style to any page I declare
<body<?php if ( is_page(array('page1', 'page2', 'page3'))) {
echo ' class="myclass" '; } ?>>
for example I can use this css to page1 , page2 and page3:
.myclass #content { background-color: #123456; }
.myclass #content p { color: #987654; }
However I don't know how to use this with every page in one certain path e.g. path /products . Let's say I have have about 30 pages under the path: mysite.com/products/somepage1 --> somepage2, somepage3, ... somepage30
So I have to include every page in the code above and even worst, any time I add a new page I have to include it to the code.
Any chance to have a simple way to add all the pages(and new pages) in one certain path?