How can I set the left and right padding on specific custom php category pages for mobile?
There are about 8 custom php category pages on our site. We wanted to adjust the left and right padding on all but three of them to prevent the content from going from edge to edge on mobile (on desktop, it’s fine).
I’ve included the URL for one of the category page in question.
WordPress adds unique body classes to posts, pages and archives.
If you right click inspect your category archive in the body tag you will something like:
category-your-slug
In the case of your wedding resources category it is:
One question. If I wanted to apply the same CSS to multiple categories, is it necessary to one of those for each category, or is it possible to include all the wanted categories in the same instance of CSS, in something like the CSS below?