[Resolved] Set The Container Width for bbPress Forum

Home Forums Support Set The Container Width for bbPress Forum

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1080711
    Py

    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

    #1080722
    Leo
    Staff
    Customer Support

    Hi there,

    What about if you use this CSS instead:

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

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

    #1104851
    David
    Staff
    Customer Support

    Hi there,

    try:

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

    Hi David,

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

    #1104865
    David
    Staff
    Customer Support

    Awesome 🙂
    Not used bbPress recently but worth checking if there is a specific Display Rule in the Layout Element:

    https://docs.generatepress.com/article/layout-element-overview/

    If so you could set the content width to Posts > All Posts and exclude the BB post type

    #1105021
    Py

    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.

    #1105032
    David
    Staff
    Customer Support

    The Elements Module is a powerhouse 🙂 Glad you’re liking the Theme and thanks for the great feedback.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.