WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WordPress Mobile Pack] Hiding some or all pages? (6 posts)

  1. Gravitydk
    Member
    Posted 4 years ago #

    Hi,

    nice mobile theme. I'd like to hide some (or all) of my pages. The posts are fine, but my pages are hierarchical and some are simply not supposed to be displayed.

    How would I do that?

  2. Gravitydk
    Member
    Posted 4 years ago #

    I thought I found it in the base theme header.php.
    I remove
    <?php wp_list_pages('title_li=&depth=1'); ?>

    then clear its cache from within the transcoder plugin directory. That didn't work, though.

  3. JSmith
    Member
    Posted 4 years ago #

    I have this same question and tried this same thing. My pages are unimportant or much less so than the posts. I don't want them at the top, I'd prefer them at bottom or not there at all. I cannot figure out how to take them out or move them.

  4. koahlee
    Member
    Posted 4 years ago #

    I had a lot of pages and so I edited the header.php and removed the code

    <div id="menu">
          <?php
            global $wpmp_theme_menu_location;
            if (function_exists('wp_nav_menu') && $wpmp_theme_menu_location) {
              wp_nav_menu(array(
                'theme_location'=>$wpmp_theme_menu_location,
                'menu_class'=>'breadcrumbs'
              ));
            } else {
              ?>
                <ul class="breadcrumbs">
                  <?php if (get_option('wpmp_theme_home_link_in_menu')=='true') {?>
                    <li class="<?php if (is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php bloginfo('url'); ?>/" title="<?php __('Home', 'wpmp'); ?>"><?php __('Home', 'wpmp'); ?></a></li>
                  <?php } ?>
                  <?php wp_list_pages('title_li=&depth=1'); ?>
                </ul>
              <?php
            }
          ?>
        </div>
    and it works fine;

  5. Gravitydk
    Member
    Posted 4 years ago #

    Thanks for the update.
    I am using Wapple mobile architect instead for the time being. (It's very good).

  6. Gravitydk
    Member
    Posted 4 years ago #

    That edit works, thank you.
    I stopped using Wapple because it was creating google crawler errors (bad URLs somehow).

Topic Closed

This topic has been closed to new replies.

About this Topic