WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Children Links in Navigation (8 posts)

  1. pedigo328
    Member
    Posted 6 years ago #

    I was wondering how you create pages but not have them show up under the navigation?
    For example, on my site (rpportfolio.myartsonline.com) the links Poems, Websites, Templates, Videos, and Games, I don't want to show on the navigation. And I'm not sure how to make them pages but not make them appear on the navigation.

    And then one last questions is, the subtitle below the title that says on my site "Just another WordPress weblog", and also at the bottom where it says Copyright 2007 BlogName, how do you change those two things?

  2. shadow
    Member
    Posted 6 years ago #

    Something like this should help:

    <ul>
    <?php
    wp_list_pages('exclude=17,38' ); ?>
    </ul>

    As shown at http://codex.wordpress.org/wp_list_pages

  3. shadow
    Member
    Posted 6 years ago #

    2. Just another WordPress weblog

    can be changed via your Admin panel - Options. Second text box.

    3. This will be code written into your theme in a file called footer.php - editable either using an offline text editor - which you change and save file and then upload via ftp
    Or online via Presentataion - Theme editor - if you have permissions on those files which allow you to edit online.

  4. pedigo328
    Member
    Posted 6 years ago #

    Alright sir, just one last question, sorry I'm a noob at wordpress, but what page do I put that in? As in the exclude code. And the excluding numbers are the page ids correct?

  5. shadow
    Member
    Posted 6 years ago #

    No need to apologise - that's why we have forums like this - to learn :)

    what page do I put that in?

    It will go into your header.php file and you should already see it in place - just change the bit between the brackets to include the relevant ID's ('exclude=17,38' )

  6. pedigo328
    Member
    Posted 6 years ago #

    <ul>
      <li>
      <a class="<? echo (is_home())?'on':''; ?>" href="<?php echo get_option('home'); ?>/">Home</a></li>
      <?php $pages = wp_list_pages('title_li=0'); ?>
     </ul>

    This is the code I have, since I'm using a different theme. How would I edit that to exclude those certain pages?

  7. shadow
    Member
    Posted 6 years ago #

    Add the exclude code to your current coding:

    <?php $pages = wp_list_pages('exclude=17,38&title_li=0'); ?>

    Just change and add the ID's to suit your particular situation.

  8. pedigo328
    Member
    Posted 6 years ago #

    Ahh alright. Cool, thanks a million bud!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags