This mod ensures that mobile devices only see the top or current level of page links rather than all levels, including sub-pages. The default display can quickly clutter the mobile view if there’s a lot of sub-pages.
Open: /includes/display/PagesMenu.php
Find:
if(isset($pages[$page['pageid']])) {
Replace with:
if(isset($pages[$page['pageid']]) && !$GLOBALS['ISC_CLASS_TEMPLATE']->getIsMobileDevice()) {
Some related mobile optimizations:
https://www.moddiy.info/increase-default-font-size-in-mobile-site/
https://www.moddiy.info/fix-google-warning-about-clickable-elements-too-close-together/
https://www.moddiy.info/fix-interspire-mobile-site-two-column-layout-issue/
https://www.moddiy.info/make-product-page-image-and-iframe-youtube-videos-fit-screen-width-in-mobile-site/
https://www.moddiy.info/add-extra-panels-in-mobile-template-homepage/
https://www.moddiy.info/fix-mobile-device-detection-in-isc/