Site logo

Archived topic

Different size container widths for posts w/wo sidebar?

1 reply · Started by yury on January 9, 2019

Viewing posts 1–2 of 2

Hi,

Can you please let me know if it is possible to control the container width in posts depending on whether or not it has a sidebar?

In the settings, I have it set at 1100 which is fine when my post has a sidebar. However, for some posts I want it without a sidebar but the 1100 is too wide then and I'd like to make it smaller.

Thanks

Hi there,

try this CSS:

.single-post.no-sidebar #page {
    max-width: 920px;
}
This archived topic is closed to new replies.