Site logo

Archived topic

Set The Container Width for bbPress Forum

7 replies · Started by Py on November 27, 2019

Viewing posts 1–8 of 8

I have set the container width for single post topic using the css below.

/* Set Specific Container Width for Just Blog Posts */
.single .inside-article {
    max-width: 716px;
    margin: 0 auto;
}

For all other pages, I want the default container width set through GeneratePress > Layout > Container > Container Width which is set at 1100 px.

However, single post forum topic takes the content width set through the css code snippet above. Please check the link provided.

How do I make bbPress forum topics to inherit the container width set in GeneratePress > Layout > Container > Container Width?

Thanks

Hi there,

What about if you use this CSS instead:

body.single:not(.forum-template-default) .inside-article {
    max-width: 716px;
    margin: 0 auto;
}

The css code did not work Leo. Both the single post and the forum post page have the same width.

Hi there,

try:

/* Set Specific Container Width for Just Blog Posts */
.single-post .inside-article {
    max-width: 716px;
    margin: 0 auto;
}

Hi David,

I love you man. Thanks a lot. Exactly what I needed.

Wow David. I have been using GeneratePress Premium for over 3 years now and I had no idea that this functionality existed.

Best WordPress Theme in the world hands down.

Thanks a lot.

The Elements Module is a powerhouse :) Glad you're liking the Theme and thanks for the great feedback.

This archived topic is closed to new replies.