AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Hiding wpforo sidebar in a specific forum

3 Posts
2 Users
1 Reactions
3,276 Views
Posts: 10
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@ehsan)
Eminent Member
Joined: 5 years ago
[#22350]

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


2 Replies
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

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:

  1. .wpft-forum
  2. .wpft-recent
  3. .wpft-topic
  4. .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

 wpforo class

Posts: 10
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@ehsan)
Eminent Member
Joined: 5 years ago

Many many thanks. I will definitely try this in my forum.


Share: