Notifications
Clear all

[Solved] Remove sidebar widget on user profile pages?

3 Posts
2 Users
2 Reactions
135 Views
Posts: 3
Topic starter
(@johnnyfive)
Active Member
Joined: 2 weeks ago

Hi guys, 

 

I'm building my new forum using WpForo using the Solace theme inside Wordpress. 

 

I'm using the 'WpForo Sidebar - (Forums)' widget to add sidebars to my forums.

 

I like the sidebar on all of the forum pages and I want to keep those where they are, but I'd like the user profile pages not to have the sidebar, if possible. 

 

When the user clicks on 'My Profile' the profile page, or any other users profile page, I'd like the profile page to fill the whole container without the sidebar. 

 

Is there a way to do this please? 

 

Many thanks in advance

2 Replies
Tutrix
Posts: 1526
(@tutrix)
Noble Member
Joined: 5 years ago

Hi @johnnyfive 

Add this CSS code to custom CSS

#wpforo #wpforo-wrap.wpft-profile .wpforo-right-sidebar,
#wpforo #wpforo-wrap.wpft-account .wpforo-right-sidebar,
#wpforo #wpforo-wrap.wpft-followers .wpforo-right-sidebar,
#wpforo #wpforo-wrap.wpft-following .wpforo-right-sidebar,
#wpforo #wpforo-wrap.wpft-favored .wpforo-right-sidebar,
#wpforo #wpforo-wrap.wpft-activity .wpforo-right-sidebar,
#wpforo #wpforo-wrap.wpft-subscriptions .wpforo-right-sidebar,
#wpforo #wpforo-wrap.wpft-messages .wpforo-right-sidebar {
  display:none
}
#wpforo #wpforo-wrap.wpft-profile .wpforo-content,
#wpforo #wpforo-wrap.wpft-account .wpforo-content,
#wpforo #wpforo-wrap.wpft-followers .wpforo-content,
#wpforo #wpforo-wrap.wpft-following .wpforo-content,
#wpforo #wpforo-wrap.wpft-favored .wpforo-content,
#wpforo #wpforo-wrap.wpft-activity .wpforo-content,
#wpforo #wpforo-wrap.wpft-subscriptions .wpforo-content,
#wpforo #wpforo-wrap.wpft-messages .wpforo-content {
  width:100%
}

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

and clear browser cache

Posts: 3
Topic starter
(@johnnyfive)
Active Member
Joined: 2 weeks ago

@tutrix Thanks so much! That worked straight away. I've been trying to figure that out for days. 

Very much appreciated 😎