Hello,
I want to hide the wpforo sidebar in some specific urls and show the sidebar in only the forum homepage.
For example,
I want to show the wpforo sidebar on https://mysite.com/community/ page with some widgets but
I DON'T want to show the wpoforo sidebar on https://mysite.com/community/example-forum page.
So, when a member visits the https://mysite.com/community/example-forum page he will see the forum having full width of the window.
Please help me to achieve this.
With kind regards,
Ehsan
Hi @ehsan,
You can use the below HTML classes to hide the sidebar by topics, posts, forums .etc. I have not listed all of the classes, you can find the needed one for you by opening the needed page, then open the browser console, select elements Tab, find the Div with wpforo-wrap ID, check what class has that div on the page(starts with wpft-).
Examples:
- .wpft-forum
- .wpft-recent
- .wpft-topic
- .wpft-post
The below CSS code hides the sidebar for posts, you can remove .wpft-post class and use another one in the CSS Code to hide the sidebar in the needed pages.
.wpft-post .wpforo-main .wpforo-right-sidebar{ display: none; width: 0px !important; } .wpft-post .wpforo-main .wpforo-content{ width: 100% !important; }
Insert the CSS Code in Custom CSS Codes field from Dashboard > Forums > Settings > Styles Tab
Many many thanks. I will definitely try this in my forum.