CSS only recognising body id tag on page 1

I have a WordPress site and I have added the page id to the body tag in the form of an id tag and as a class, i.e. id=”pid1234″ class=”pid1234″.
This is working perfectly on page 1 of a WooCommerce Product page.
However when I use the pagination and move onto page 2 the CSS is completely ignored, it doesn’t even appear in my Browser developer tools. The id and class tags retain the appropriate values.
Returning back to page 1 using the same pagination buttons and the CSS is again applied correctly.
Any ideas why the CSS is being ignored on all but the first page of a WooCommerce page.

Read more here: CSS only recognising body id tag on page 1

Leave a Reply

Your email address will not be published. Required fields are marked *