Archived topic
Width of text on page for ~/blog and individual posts only
3 replies · Started by David Bennett on June 20, 2021
On my WooCommerce site I want the Product pages and other pages to remain as I have them, and to target ~/blog and the individual articles and bring in the width.
I added this CSS to bring in ~/blog but I cannot figure out how to affect the individual blog posts only without also affecting the rest of the site.
.one-container:not(.page) .inside-article {
padding: 5px 100px 5px 100px;
}
The site is at Flying Twigs
Thanks in advance,
David
Hi there,
you can use a Layout Element to adjust the Content Container Width:
https://docs.generatepress.com/article/layout-element-overview/
Then set the Display Rule Locations to Blog and Posts > All Posts and wherever else you want it applied.
Excellent. Thank you.
Glad to be of help