Notifications
Clear all

Css to make sidebar show on top of forum content for mobile

3 Posts
2 Users
0 Likes
1,155 Views
Daver
Posts: 11
Topic starter
(@daver)
Active Member
Joined: 4 years ago

Is there a way to show sidebar first so that I have the sidebar search and recent posts at the top of forum content for mobile only.

Topic Tags
2 Replies
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi Daver,

Yes, it should be possible by using CSS code. Just need to add a CSS code with the appropriate selector to Dashboard > Forums > Settings > Styles > Custom CSS code textarea:

The CSS rule is:

display: flex;
flex-direction: column-reverse;

The appropriate selector you can find by pressing F12 on the browser and opening Chrome or Firefox Console:

Reply
Daver
Posts: 11
Topic starter
(@daver)
Active Member
Joined: 4 years ago

I put the css in the custom css code area but nothing happens. Do I have to modify some php file as well?

Reply
Share: