Already tried search (so overwhelming!) Zoikes!
On the new sidebar, is there a way to edit (or disable) what shows up in the “community” dropdown (everything, my posts etc)
We don’t really want all the things in there and was hoping there is an easy button / UI for editing those things (example links to badges or FAQ’s )
2 Likes
Heliosurge
(Dan DeMontmorency)
March 6, 2023, 8:03pm
2
This post in theme-component Hide Sidebar has code for hiding just community.
Might be a starting point
That is pretty straightforward with a bit of CSS targetting .anon:
.anon div.sidebar-section-community {
display: none;
}
If I get the chance I’ll roll that functionality into this TC.
Scroll to top and there is a link back to sone code as well.
3 Likes
nathank
(Nathan Kershaw)
March 8, 2023, 4:04am
3
Alas, there isn’t at the moment.
But the @team is working on it:
Recently, we decided to extend the level of customization for sidebar on meta. We have enabled the ability for you to create your own sidebar sections with links (using the enable custom sidebar sections setting).
How it works
To display the form, you will need to click plus button at the bottom of the sidebar.
[Add section button]
You will need to provide the title of the section and at least one valid link. A valid link contains an icon, name and correct URL within the Discourse forum (abs…
Until that is more widely available you are left with hiding some or all of the Community section with CSS (is pretty straightforward for admins) or doing some slightly crazier hacky stuff as chronicalled here:
We want to allow users to add a custom section of links to their sidebar.
In a first pass for this feature, we plan to build upon the existing sidebar preferences page , and allow a user to add a single custom section for these links.
We think it can work something like this:
checkbox for “Show Custom Section”.
If checked Custom Section appears above Categories Section and values must have valid Name and at least one valid Link to “Save Changes”
textbox for Name of the custom section (defaul…
1 Like
Canapin
(Coin-coin le Canapin)
March 8, 2023, 12:05pm
4
Pretty much everything to know has been said here by @Heliosurge and @nathank
To add a bit nonetheless, if you want to hide an element, you can do it with CSS.
This is an excellent resource to start with this kind of modification: Make CSS changes on Your Site
To summarize, you’ll use your browser development tools to find which HTML element to hide and put a display: none;
CSS rule on it.
If you want to reorder some elements, it can also be done with CSS. It’s a little bit more advanced, and it will depend on what you want to reorder and the exact order you want.
I give an example here:
You can use this CSS:
#sidebar-section-content-categories,
#sidebar-section-content-tags {
display: flex;
flex-direction: column;
li:last-child {
order: -1;
}
}
[image]
2 Likes
What if we want to add some elements or pages into the sidebar menu or if we want to add more items like some custom pages into it then how we can achieve that?
2 Likes
nathank
(Nathan Kershaw)
March 15, 2023, 2:35am
6
The best way at the moment is to add this code to your Theme (or make your own Theme Component) based upon this (or the post below it):
Here’s another example that I hope will be helpful to someone, based heavily off the above examples. This code doesn’t add an entirely new section, but instead adds additional links to the bottom of the “More” panel in the Community section (but before the FAQ and About links in the footer). It supports FontAwesome icons (assuming they’re added in the site settings) and external links. It handles edge cases where the sidebar is closed and re-opened, and/or the Community section is collapsed and …
I had a go at packaging this into its own configurable Theme Component based on the Hamburger Links TC but I got stuck on getting the variables from a list into the code. I’m sure someone more clever than I could do it in a few minutes!
1 Like
The best way at the moment is to add this code to your Theme (or make your own Theme Component) based upon this (or the post below it):
Here’s another example that I hope will be helpful to someone, based heavily off the above examples. This code doesn’t add an entirely new section, but instead adds additional links to the bottom of the “More” panel in the Community section (but before the FAQ and About links in the footer). It supports FontAwesome icons (assuming they’re added in the site settings) and external links. It handles edge cases where the sidebar is closed and re-opened, and/or the Community section is collapsed and …
I had a go at packaging this into its own configurable Theme Component based on the Hamburger Links TC but I got stuck on getting the variables from a list into the code. I’m sure someone more clever than I could do it in a few minutes!
Thanks Nathan, I’m going to play around with it this weekend - PS, we’re live! Real Estate Webmasters Forum / REW Community - For Top Agents, Teams & Brokers (excited to have the new upgrade)
Is there a “what’s new” thread somewhere talking about all the new features? I’m embarrassed to say we were quite a few versions behind, I want to make sure I’m not missing any cool new things that aren’t on my radar.
Apprecaite your help my man!
1 Like
nathank
(Nathan Kershaw)
March 15, 2023, 4:05am
8
Congrats, and I hope that your journey with Discourse is deeply rewarding! Your site looks really good.
I recommend checking out and maybe watching release-notes to keep abreast of major features as they are released.
1 Like
nathank
(Nathan Kershaw)
March 18, 2023, 4:48pm
9
If you update now, you’ll be able to add a new custom section visible to all your users without resorting to dropping in scripts if you wish:
I note that this is live (but experimental of course)! Brilliant! The OP could be updated to note this.
Also, it might be worth stating that it has the nice little globe only for @staff :
[image]
I discovered that only after I’d managed to hide it with CSS thinking that it would look silly for our regular users!
It works for external links, but just not my
links (i.e. /my/preferences/profile )