Skip to content
Discussion options

You must be logged in to vote

One approach I can think of is to produce a theme extension and then setting the page template for the pages where you want a different width. The template should then define a CSS class you can match in your extra.css to produce the desired width only for those pages that need it.

It may be more straightforward to do this with just CSS if there is something you can match that is already unique to the pages were you want to have a different width. If I understand CSS correctly, it would need to be an element or an attribute. It is not possible to match on content (such as the text in the top-level heading).

Think about whether there will be other things that may need to be adjusted for th…

Replies: 1 comment 3 replies

Comment options

alexvoss
Oct 7, 2023
Collaborator Sponsor

You must be logged in to vote
3 replies
@mendax1234
Comment options

@alexvoss
Comment options

alexvoss Oct 7, 2023
Collaborator Sponsor

Answer selected by mendax1234
@mendax1234
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants