• hellodollyx

    (@hellodollyx)


    Hi,

    Bumped into an issue that i can’t seem to figure out. Please help.

    I have a wp blog(matheson theme) and a bbpress forum.

    Trying to remove the sidebar from posts but keep it on side in the forum.

    When i go to customize menu there is an option to make the posts 100% width. The sidebar moves to the bottom instead of going away. So i went to single.php and removed <?php get_sidebar(); ?> which removes it all together. Great, or so i thought.

    The issue is now the forum is full-width and the custom sidebar is on the bottom instead of the side.

    any suggestions to put the custom sidebar on the side of the forum page would be much appreciated.

    Link to a post: https://goo.gl/0M2qbW
    Link to the forum: https://goo.gl/KYCuXj

Viewing 1 replies (of 1 total)
  • Theme Author bandicootmarketing

    (@tinkerpriest)

    The 100% option for the main content will not actually make the sidebar disappear. I should honestly remove it since it always ends up breaking the layout.

    The only way to achieve what you want would be by adding a conditional tag to the sidebar function and some CSS to force the widths you want.

    Look at is_bbpress(): https://codex.bbpress.org/bbpress-conditional-tags/

    And then this CSS:

    #primary {
    width: 100%;
    }

    .bbpress #primary {
    width: 75%;
    }

    You’ll have to play around with the actual sizes.

Viewing 1 replies (of 1 total)
  • The topic ‘Removing sidebar in posts, but keeping on side in forum.’ is closed to new replies.