Sidebar Section Rearrangement

Hi,

I was wondering if it’s possible to rearrange the categories listing above the custom section in the sidebar. If so, could someone assist me with this?

Thank you in advance!

2 Likes

There’s not a setting for this, but it can be done by adding CSS to admin/customize/themes

.sidebar-wrapper { 
  .sidebar-custom-sections {
    display: contents;
  } 
  [data-section-name="community"] {
    order: -3;
  }
  [data-section-name="categories"] {
    order: -2;
  }
  [data-section-name="custom-section-title-here"] {
    order: -1;
  }
}
3 Likes

You can change the order of any navigation sidebar menu sections with my Navigation Menu Display Control theme component.

3 Likes

Hi @awesomerobot Thank you for your reply. Its a great css the one you have provided, however I want categories should come after First section which includes Topics, My Posts, Review, Admin & More…
I hope you understand.

4 Likes

Ah, sorry I misunderstood… I revised my answer to reflect this above.

2 Likes

@awesomerobot Excellent CSS. It’s perfectly working. Thank you so much… :heart_eyes:

3 Likes