I think the ones added by plugins are still a little inflexible when it comes to customising the sidebar. I think this is still the advised way of doing it:
Handling plugin-added links
Plugin-added links cannot be directly customized. To modify these links:
Create a replacement link with your desired customizations
Hide the original plugin link
Some links can be hidden in the settings of the plugin. For instance, the upcoming events link can be hidden by disabling the sidebar_show_upcoming_events
setting.
If no setting exists to hide the link, you can use CSS to remove it. For example, the following CSS snippet, originally shared in this topic , hides the link added by the Docs plugin:
.sidebar-section-wrapper {
li[data-list-item-name=docs] {
display: none !important;
}
}
3 Likes