26 | Posts |
1.5K | Posts |
62.6K | Downloads |
16 | Plugins |
Basically there are two ways:
1) Without JavaScript: Simply use "External Link" for your parent pages' menu entries and put a hash (#) into the Target URL field.
2) With Javascript:
after the <?php gpOutput::GetHead(); ?> line in your template.php add this script:
<script> $('document').ready( function() { $('ul.menu_top>li>a.haschildren').click( function(event) { event.preventDefault(); }); }); </script>
This is similar to what Bootstrap does. Note: It will prevent you users (with JavaScript on) to access these parent pages by preventing the click event - but search engines will crawl the pages unless you set their robots metatag to "noindex":
Page Manager -> yourParentPage -> Rename/Details -> More Options -> Robots Visibiliy -> [x] noindex
26 | Posts |
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More NewsFind out more about our Provider Spotlight
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using