Site logo

Archived topic

Page width, article page and article

7 replies · Started by Simone Longato on January 4, 2021

Viewing posts 1–8 of 8

Hello, sorry for my English :-)

I wanted to know if it was possible to give a container (page) width of 700 / 650px (about 65% of the desktop width of the GeneratePress default width), but considering not to modify the "blog" page that collects all the articles, I would like this to be with its classic 1100px (ie 100% of the container, not the screen).

I tried to go to "Customizer> Layout> Container": but here I also modify the "blog" page and I tried to insert this CSS (but it always works on the whole site and I can't exclude the blog page and the pages of the articles)

@media only screen and (min-width: 850px) {
/ * desktop only * /
.entry-content {
width: 60%;
padding-left: 20%;
}
}

How can I do? thank you very much for helping.

Thansk a lot and have a Good day

Simone Longato

Hello David, thanks a lot for your reply
I setting the width of the page. Is all OK

But I have the same problem for page blog and articles.

Can I setting like this page?
https://www.simonelongato.it/rilanciare-azienda-come-ripartire/
About is 1100px width (with sidebar)

I hope in your reply

Have a nice day

Is the Sidebar present on all Blog Archives and Posts ?

Hello David, thanks a lot for your reply
Sidebar is present on all post and in the general page "blog"
On blog archive is not presentes.
Is a problem this difference?

Thanks a lot and have a nice day

No difference. I think i have misunderstood the question :)

You're CSS can be changed to this, and it will only apply to the Single post:

@media only screen and (min-width: 850px) {
    / * desktop only * / 
    .single-post .entry-content {
        width: 60%;
        padding-left: 20%;
    }
}

The single-post is a body class that WP automatically adds to the <body> element of the site when you're on a single post.

Thanks a lot David
Have a nice day!

You're welcome

This archived topic is closed to new replies.