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] Sidebar widgets display at top of mobile device

5 Posts
2 Users
0 Reactions
1,397 Views
Posts: 85
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
(@zeeshan333)
Estimable Member
Joined: 7 years ago
[#11426]

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
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
(@zeeshan333)
Estimable Member
Joined: 7 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
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
(@zeeshan333)
Estimable Member
Joined: 7 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: 8 years ago

Support Team
Posts: 5774
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

@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: 7 years ago

Estimable Member
Posts: 85
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

@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?


Share: