CSS Styling a specific page

Question

I am familiar with styling specific pages on WordPress by adding a class

.page-id-123

in front of the styled element. However, this doesn’t seem to apply to “subpages” (sorry don’t know what they are called), when after the page, there is a specific tag (?) added.

Example:

URL: wordpressweb.com/my-account

CSS: .page-id-123 .header { background-color: yellow; }

URL: wordpressweb.com/my-account/?add-new-business=true

CSS: ??? .header { background-color: yellow; }

Is there a way to target these kind of pages with CSS?

0
, , jade newport 4 years 2019-11-06T15:23:56-05:00 0 Answers 65 views 0

Leave an answer

Browse
Browse