Notifications
Clear all

wpForo 1.x.x [Closed] Sidebar widgets display at top of mobile device

5 Posts
2 Users
0 Reactions
855 Views
Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 5 years ago

I managed to make some css to display the wpforo sidebar at the top of the page on mobile devices, I was wondering if anyone could help me develop it further such that I can pick specific widgets to display at the top, then choose which widgets go underneath the page content. 

Would be really useful as I want the login widget in the sidebar to display above the page content, but I dont want to overcrowd the top of the page with the other widgets, so displaying them at the bottom would be good. At the moment I had to compromise and force the other widgets to go at the bottom by removing them from the sidebar and putting them underneath the forum content via a shortcode plugin.

Here is the css

@media (max-width: 768px) {
.wpforo-main.wpft-forum {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
}

.wpforo-content {
-webkit-box-ordinal-group: 2;
-moz-box-ordinal-group: 2;
-ms-flex-order: 2;
-webkit-order: 2;
order: 2;
}
}

Here is the forum I did it on: http://examqa.com/forums/

4 Replies
Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 5 years ago

@media (max-width: 768px) {
.wpforo-main.wpft-forum {
display: flex;
flex-flow: row wrap;
}

.wpforo-content {
order: 2;
}
}

This is the slimmed down version of the css

Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 5 years ago

UPDATE:

Just found this thread: https://wpforo.com/community/general-discussions/css-to-make-sidebar-show-on-top-of-content-for-mobile/#post-23237

Not sure how to implement it on my forum.

I need ONLY the login widget to be at the top

2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@zeeshan333,

Probably it'll be easier if you use some plugin for this purpose?

I've found the following plugin you can use: https://wordpress.org/plugins/custom-sidebars/  

Here you can find other plugins: 

https://wordpress.org/plugins/search/widget/

(@zeeshan333)
Joined: 5 years ago

Estimable Member
Posts: 85

@sofy

Cheers, I'll look into these plugins.

The first link that you sent me - it seems to be out of date (last updated 8 months ago + not tested with current wordpress version). Would there be any risk involved in using out of date plugins or do you think its still a trustable plugin?