Topic Closed
26 Posts


I'm creating my own theme and have added some pages and subpages. Bij Default themes (like bootswatch) the parent pages are disabled when they contain subpages. I'm trying to do this with my own theme as well, does anyone know how?


7 years ago#7611

1.5K Posts
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:

$('document').ready( function() {
 $('ul.menu_top>li>a.haschildren').click( function(event) {

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

Edited: 7 years ago#7615

26 Posts

Hi Juergen,

Thanks, it worked! I used the javascript solution and checked the noindex and no follow boxes for the parent pages.

7 years ago#7627

Topic Closed



elFinder 2.1.50 in Upcoming Release

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In