Skip to main content
Closed (Duplicate)

Allow the creation of dropdowns in Mega Menu (With topic counters)

Related products:CC Customization
  • heather_hansen
    heather_hansen
  • tmorgan
    tmorgan
  • Veronica.Moore

SmartlyGreg

I’m finding that both the Mega Menu and Navigation menu are incredibly limiting and while having the counters for each category of content makes a lot of sense; their use means - in my eyes - sacrificing the ability of new members to quickly grasp the structure of InSided communities.

This becomes obvious with many communities duplicating content in the navigation, or adding links to FAQs, or simply awkward naming convention for the dropdown “Overview, Community...”

Many browsers/ members will rely on the top navigation to understand the general structure of a site, and the default Mega Menu where all categories are in one dropdown and then Groups and Events and such are separate to me suggests that the items not part of the dropdown are likely external links or at least unrelated to the community. (Perhaps having the Knowledge base dropdown in the navigation smoothes this down a little, as is the case for InSpired).

I’d love to be able to create my own dropdowns in the Mega Menu and with the categories that can be selected as options still keep the topic counters as well.

SmartlyGreg
Forum|alt.badge.img
  • Helper ⭐️⭐️⭐️
  • January 21, 2022

For full context my workaround until now has been to remove the appearance of the News & Announcements category and its 2 sub-categories and placing a simple link to the News & Announcements next to the dropdown I’ve labelled “Community Forums”.

 

For this I used the script:

<script>
  var dropDownLinks = document.getElementsByClassName("main-menu-list__item");
  dropDownLinks[0].setAttribute('class', 'dont-show');
  dropDownLinks[3].setAttribute('class', 'dont-show');
  dropDownLinks[3].setAttribute('class', 'dont-show');
  dropDownLinks[3].setAttribute('class', 'dont-show');
</script> 

In a perfect world the News & Announcements would also be a dropdown, and I’d be able to edit the content of the first dropdown without a script!


  • January 23, 2022

@SmartlyGreg great suggestion. You have to stop teasing us though with screenshots of your new community and let us all in to see your beta. Looks great. 


Updated idea statusNewClosed (Duplicate)
Idea merged into:

All the votes from this idea have been transferred.

ryanne.perry

This is awesome ​@SmartlyGreg. I am receiving the following error trying to replicate your script “Unexpected char "<" (line: 32, char: 1)” any ideas on what I might be doing wrong?


olimarrio
Forum|alt.badge.img+4
  • Gainsight Employee ⭐️
  • February 5, 2025

Hi ​@ryanne.perry 👋,

Looks like there was a trailing character that was causing the script to error out. I added some other code which can achieve something similar:

<script>
  if (inSidedData.user.role == 'roles.guest') { 
document.getElementById('downshift-0-item-1').style.display = 'none';
document.getElementById('downshift-0-item-2').style.display = 'none';
  } 
</script> 

This will remove some of the dropdown menu items but for guest users only.



Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings