How do I style dynamically generated pages?
-
How do I style dynamically generated pages that don’t have any of the theme selectors as a parent?
This is the HTML of the page:
You can see the stats-head and stats-content selectors, but if I style those in my style sheet, the styles will not be applied.
I asked around and people just said (including support personnel) that it’s a dynamically generated page so it’s not possible to style it.the url looks like this:
mysite.com/ad-stats/qaI21ThjITSynPxlVIuIVPkDAH3zPbcxb3axlcYnhJjIchuJ/so I do have a slug that I could target… but how?
In WordPress I can just use .page for example as a selector, I mean selectors that are built in WordPress, but in this case I have nothing like that.
I have given up trying to style elements on this dynamically generated page because I didn’t find any information on how to do it.
So now I am just trying to apply a single SVG filter to filter the whole page, to gain some kind of control over its colors and appearance, instead of styling its elements.
But I don’t understand why using the selectors stats-head and stats-content that are in the HTML (and I checked in the dev tools that they do select the whole page, if I would style both) cannot be styled from my style sheet, but they can be styled from the dev tools.
There is no style sheet defined for these elements in the plugin.
How do I create and apply a style sheet for such a dynamically generated page so that it would be also plugin update proof?
Is it usual practice for WP plugin authors to not make a stylesheet or not provide styling possibility for dynamically generated pages?
But in WP everything is dynamically generated, so I don’t understand why this ad statistics page is more dynamically generated than the rest?- This topic was modified 2 years, 9 months ago by .
- This topic was modified 2 years, 9 months ago by .
- This topic was modified 2 years, 9 months ago by .
- This topic was modified 2 years, 9 months ago by .
- This topic was modified 2 years, 9 months ago by .
- This topic was modified 2 years, 9 months ago by .
- This topic was modified 2 years, 9 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
- The topic ‘How do I style dynamically generated pages?’ is closed to new replies.