WordPress Mobile Pack
how to remove pages or use a custom menu (4 posts)

  1. ntho
    Posted 3 years ago #

    How do I force the wordpress mobile pack plugin to use a custom menu, or how do I remove certain pages from being shown in the mobile page menu? I have a lot of pages that are slightly different versions of the same landing page and do not want them to be seen.

    Thanks in advance for your help,


  2. asorethumb
    Posted 3 years ago #

    In your header template, you can find the wp_list pages tag, and edit it to exclude/include the pages you want. Below is an example of how I only included certain pages.

    <?php wp_list_pages('include=1061,104,2293,282,1573,672,82,8,3345&title_li=&depth=1'); ?>

  3. edecaria
    Posted 3 years ago #

    Hi. I was having the same issue as the original poster, and tried the edit suggested by asorethumb. It does not seem to clean up the page list displayed by the mobile pack. I tried both an include text string and an exclude text string. I definitely did it in the right theme and in the right .php file, so I'm not sure what I'm missing. Any other thoughts on how to address the visibility of what would otherwise be hidden pages in the desktop version? Thank you for any and all support. -Ed

  4. edecaria
    Posted 3 years ago #

    In case anyone else comes across this issue, I was able to hide pages as desired using a plug-in called "Exclude Pages from Navigation" by Simon Wheatley. It embeds a checkbox in each post to include the page in navigation menus; by default it is checked, but if you uncheck the box, it removes the pages from WordPress Mobile Pack views.

    Note that in normal desktop view mode, the hardcoded pageIDs that I marked as hidden were still hidden even after activating the plug-in, which again is set to "include" pages in navigation by default.

    So, it seems to play very nicely with existing settings. Brilliant little plug-in. Got 5 stars from me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Mobile Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic