- This topic has 5 replies, 2 voices, and was last updated 1 year, 2 months ago by Leo.
July 4, 2019 at 11:42 am #949160George
Sometimes I find myself wanting to create certain landing pages that need to have a narrower page wrapper width than the main wrapper container set in the Customizer.
I am aware of the fact that you can create two hooks as described in the article here and selecting the necessary
afterelements, in my case
after_main_contentto constrain the page width accordingly with CSS. The other solution would be applying CSS directly on page ID. This creates two additional hooks, though and could prove not so maintainable.
An easier solution would be to have a setting per page/post where a custom page width could be set in px, %, em or vw units. Just wondering if that would be easy to implement?
Thank you!July 4, 2019 at 11:47 am #949166LeoStaffCustomer Support
Just to make sure, this isn’t what you are looking for?
That generally works for most users.
If not then we would need to go with the CSS route. Not sure exactly what you are trying to do but shouldn’t need to involve hook unless you are wrapping the entire page.
Any chance you can link me to the site in question so I can provide the best suggestion?
Let me know 🙂July 4, 2019 at 12:20 pm #949211George
Hi Leo, yes the layout element as you mention is what I am talking about, hadn’t noticed that. Just a wrapper for the page content, not the whole site wrapper. Just thought, it would be a good idea to have that per page/post but the actual element could work better, actually. I just wished there were other units to choose from apart from px and also some kind of responsive option so that it would only be applied to certain devices/widths.
No big deal, I guess the different units could be added in a future update if Tom agrees?July 4, 2019 at 3:24 pm #949322LeoStaffCustomer SupportJuly 4, 2019 at 3:25 pm #949323George
No, I am sorted, just mentioned that as a possible improvement. Thanks, Leo!July 4, 2019 at 3:33 pm #949327
- You must be logged in to reply to this topic.