#toc {
background-color: rgba(187, 222, 251, .6);
padding-top: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
margin-bottom: 20px;
width: 370px;
}
On this page:• Making a single menu item not clickable• Making multiple menu items not clickable• TroubleshootingClicking on the top level within a multi-level menu will open the corresponding page. But maybe you don't want clicking the top level menu item to go anywhere. Instead, you just want the parent page to act as a way to group to the child pages under it. Here, we will provide a way for making any menu item do nothing when clicked (i.e. the link goes nowhere).The parent page can still be accessed using a breadcrumbs gadget. If you don't want it to be, you could redirect the parent page to your home page or one of the child pages.Making a single menu item not clickableTo make a single menu item not clickable, follow these steps:Go to the Website module (by clicking the Website menu) then click the Settings option.Within the Settings screen, click Global JavaScript (under Site settings).Paste the following script in the code box (if there are other scripts already in there be sure not to overwrite any of it):In the code above, in the second line from the bottom, replace pageURL with the page URL of the page – e.g.removeLinks("page-1591795")You can find the page URL within the page settings.Click the Save button to save your changes.Making multiple menu items not clickableTo make multiple menu items not clickable, follow these steps:Go to the Settings page and click Global JavaScript(under Site settings) then paste the following script in the code box (if there are other scripts already in there be sure not to overwrite any of it):In the code above, in the second line from the bottom, replace pageURLarray with a list of page URLs within quotation marks and separated by commas – e.g.removeLinks(["Scholarship-and-Grants", "Fundraisers", "Join", "Events"])You can find the page URL within the page settings.Click the Save button to save your changes.TroubleshootingIf the code you have inserted doesn't work, check to make sure that the quotation marks appearing in the code are straight quotation marks – " " – rather than curved or curly (aka smart) quotation marks – “ ”. Some word processors including Microsoft Word and Google Docs automatically convert straight quotation marks to curly ones.