Home

Download this help site
(PDF 80MB)

Download

Making menu items not clickable

Clicking 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).

Making a single menu item not clickable

To make a single menu item not clickable, follow these steps:

 Read more/less
  1. 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):

  2. In the code above, in the second line from the bottom, replace pageURL with the page URL – e.g. removeLinks("page-56457") – of the page. You can find the page URL within the page settings.



  3. Click the Save button to save your changes.

Making multiple menu items not clickable

To make multiple menu items not clickable, follow these steps:

 Read more/less
  1. 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):

  2. In the code above, in the second line from the bottom, replace pageURLarray with an array of page URLs within quotation marks and separated by commas – e.g. removeLinks(["Scholarship-and-Grants", "Fundraisers", "Join", "Events"]) – of the pages. You can find the page URL within the page settings.

  3. Click the Save button to save your changes.

Troubleshooting

If 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.

On this page: 

  • No labels
 
Wild Apricot Inc. 144 Front Street West Suite 725, Toronto, Ontario, Canada M5J 2L7