Creating pages that wont appear on the menu

  • Unknown's avatar

    I am writing a novel, and I want to create links to pages for different chapters. I have created my drop down menu that lists chapters. When they get to that page, I want to be able to have links to pages that have the chapter content, but don’t appear in the menu.

    For Example
    Chapters page
    *Chapter One – link would go to chapter 1 page
    *Chapter Two – link would go to chapter 2 page

  • Unknown's avatar

    Hi,

    I’m not sure that I follow correctly. Do you mean that each chapter page will have a list of sections, sub-chapters one might call them, with page numbers linking to the sub-chapter content?

    Example (each link goes to a nonexistent page on a nonexistent site):
    Chapter 1
    part a……..p.7
    part b……..p.16
    part c……..p.27

    code for the above link list:

    Chapter 1
    <a href="https://myfantasticbook/chapter-1/page-7">part a........p.7</a>
    <a href="https://myfantasticbook/chapter-1/page-16">part b........p.16</a>
    <a href="https://myfantasticbook/chapter-1/page-27">part c........p.27</a>
  • Unknown's avatar

    The above link list combines two constructions: a link and a list. How to create each those is described in the following two support pages, respectively: List Block, Links.

  • Unknown's avatar

    If you only want the page numbers of the sub-chapters, and not on the sub-chapter headings or titles, to be links, then it might look something like this:

    Chapter 1 Title

    • sub-chapter A heading……..p.7
    • sub-chapter B heading……..p.16
    • sub-chapter C heading……..p.27

    code

    Chapter 1 Title
    <ul>
     	<li>sub-chapter A heading........<a href="https://myfantasticbook/chapter-1/page-7">p.7</a></li>
     	<li>sub-chapter B heading........<a href="https://myfantasticbook/chapter-1/page-16">p.16</a></li>
     	<li>sub-chapter C heading........<a href="https://myfantasticbook/chapter-1/page-27">p.27</a></li>
    </ul>

    This one actually includes HTML link code, I’d forgotten to use link code in the first example.

  • Unknown's avatar

    Hey.

    I guess i didn’t explain well. In my drop down menu, I’ll have a page called chapters.

    When you click that page it will take you to a list of chapters.

    I want each chapter be a clickable link that will take you to a page with the chapter content.

    Write now it seems that any page i create is automatically added to the menu and i don’t want that. I want the pages to be “hidden” from the menu, but can be accessed when you click the url

    Hope that helps explain what I am trying to do.

  • Unknown's avatar

    Okay, sorry about the misinterpretation.

    [Right] now it seems that any page i create is automatically added to the menu and i don’t want that. I want the pages to be “hidden” from the menu, but can be accessed when you click the url

    This can be accomplished easily in a custom menu. However, each method that I will describe requires that the menu be a custom menu. So if you don’t presently have a custom menu, then I’d suggest replacing the default pages menu with a custom menu (see the Site Menus support page for relevant information and instructions). Hiding some menu items from a default pages menu might be possible with custom CSS, but I’m not skilled regarding CSS code.

    The way to do it in a custom menu is to not add some pages to the menu as they are created. Two ways:

    1. Create your chapter pages (Chapter 1, Chapter 2, etc.) as child pages of the “Chapters” page, and at Customize > Menus > Primary > Menu Options, place a check in the box labeled “Automatically add new top-level pages to this menu,” or leave it checked if it’s already checked. Save the change (if applicable).

    2. Create all pages as top-level pages, and at Customize > Menus > Primary > Menu Options, uncheck the box labeled “Automatically add new top-level pages to this menu,” or leave it unchecked. Save the change (if applicable). In this option, you can make the chapter pages child pages later, if it is convenient to do so, without them being added to the custom menu. Making some pages child pages creates a hierarchy of pages and may be useful if you choose to use the List Pages Shortcode anywhere.

    On a separate note, it is possible to make any item that appears in a custom menu unclickable. See the Make an Unclickable Menu Item section of the Site Menus support page for relevant information and instructions.

  • Unknown's avatar

    A third option would be a combination of options 1 and 2.

    3. Create your chapter pages (Chapter 1, Chapter 2, etc.) as child pages of the “Chapters” page, and at Customize > Menus > Primary > Menu Options, uncheck the box labeled “Automatically add new top-level pages to this menu,” or leave it unchecked. Save the change (if applicable).

    In options 2 and 3 no pages will be automatically added to the custom menu. So any pages that you want added to the custom menu will have to be added manually.

  • The topic ‘Creating pages that wont appear on the menu’ is closed to new replies.