Advertisement:

Author Topic: Move sidebar from left to the right on category and search results pages  (Read 632 times)

Resta

  • Sr. Member
  • ****
  • Posts: 345
Hello,

I was wondering if anyone has moved the the sidebar from left to the right side on the category/search results pages? If so, could you please provide instructions? TIA!

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Hello,

I'm not sure, but depending on your theme you should just change float in CSS.

Regards.

Resta

  • Sr. Member
  • ****
  • Posts: 345
Theme is Bender!

Quote
you should just change float in CSS
Want to know what exatly to change in the CSS with regards float and where.

Thanks!
« Last Edit: March 10, 2018, 01:12:44 am by Resta »

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
OK, I'm going to take a look at it. :D

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
EDITED

Add this to your theme's CSS file:

Code: [Select]
body.search #sidebar {
    float: right !important;
}
body.search #main {
    float: left !important;
}
« Last Edit: March 11, 2018, 02:54:17 pm by patrickFromCroatia »

Resta

  • Sr. Member
  • ****
  • Posts: 345
Thanks, Patrick - it works but there is a problem - it does the same to the menu in the user dashboard. If there is a simple workaround so the user menu sidebar still stays on the left, I would like to know but otherwise no problem because I found another way to do what I want.

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Check my edited post up there.

Regards.

Resta

  • Sr. Member
  • ****
  • Posts: 345
Thanks, Patrick - I already changed my search page so I have test this later and I will report if there is any issue. Thanks again!