Notifications
Clear all

[Solved] Remove Sidebar Only On Certain Pages

5 Posts
3 Users
2 Reactions
481 Views
Posts: 60
Topic starter
(@sison2466)
Estimable Member
Joined: 1 year ago

I am trying to make a distraction free (as much as possible) page where users can post questions. It is possible to remove the sidebar perhaps by using a shortcode or other setting for a specific page where a user can ask a question?

I am currently using this shortcode on a blank page.

[wpforo boardid="0" item="add-topic" id="2"]

 

4 Replies
dimalifragis
Posts: 2603
(@dimalifragis)
Famed Member
Joined: 5 years ago

In order to do that, you need NOT to use wpForo sidebar but of your THEME's.

Then with some widget options plugin, you will be able to tune what to show & where.

Reply
Tutrix
Posts: 1523
(@tutrix)
Noble Member
Joined: 5 years ago

Hi @sison2466 

try this code

#wpforo #wpforo-wrap.wpft-forum .wpforo-content {
 width:100%
}
#wpforo #wpforo-wrap.wpft-forum .wpforo-right-sidebar {
 width:0%;
 display:none;
}

add it to custom css

Dashboard > wpForo > Settings > Colors & Styles > Custom CSS

 

Reply
1 Reply
(@sison2466)
Joined: 1 year ago

Estimable Member
Posts: 60

@tutrix This would remove the sidebar on all the forum pages, correct? Is there a way to affect the CSS of just one page?

Reply
Tutrix
Posts: 1523
(@tutrix)
Noble Member
Joined: 5 years ago

Posted by: @sison2466

Is there a way to affect the CSS of just one page?

yes, if you use the correct css class instead of

.wpft-forum
Reply