WordPress.org

Ready to get started?Download WordPress

Forums

Page without a tab needed...how? (6 posts)

  1. jrjordan
    Member
    Posted 6 years ago #

    Hello all, I was needing to create a type of subpage, or something like that, with no tab. I can make a subpage, but I want the new page to not have a parent page URL.

    How do I do this?

    Thanks so much,
    john

  2. alexleonard
    Member
    Posted 6 years ago #

    I'm afraid you're going to need to be a little bit more specific than that!

    If you supply a URL of your site and please give an example of what it is that is wrong, and what you are trying to do.

  3. jrjordan
    Member
    Posted 6 years ago #

    Thank you for your request for clarification.

    I want to make a page, optimized for a particular keyword, and not have it show up as a tab.

    My site: http://www.ConnectionCare.com

    I have the following tabs at the top: home, premarital compat. test, prepare enrich, resources, etc.

    Let's say I want a page optimized for the keyword "marriage communication." I don't want another tab on my index/home page. I just want to make the page with the following URL or link: http://www.connectioncare.com/marriage-communication.

    How do I make that page, and not have it show up as a tab?

    I do not know that much about WordPress or creating the site, so I am not exactly sure for what I should be asking.

    Thanks again!

  4. alexleonard
    Member
    Posted 6 years ago #

    Oh right. I think I understand what you are trying to do.

    Anytime you create a page it appears in the top tabs.

    The best navigation tool I use is NAVT

    It's a brilliant tool and will allow you much greater control over your page navigation.

    Upload and activate the plugin.

    Go to Manage > NAVT Lists

    In here you can create a new navigation menu, say call it "main". Once it's created you can drag any of your desired tabs from "unassigned" to "main"

    Then, go into (I'm guessing here) your header.php file and find the wp_list_pages() function and replace it with:

    <?php navt_getlist(main, $bEcho=true, $sTitle='', $sBefore='ul', $sAfter='/ul', $sBeforeItem='li', $sAfterItem='/li') ?>

    This code will tell your theme to render that main list of navigation items.

    It might require a bit of work in around that, but it's so worthwhile as you can create more menus and use them as widgets in your side bar.

    Otherwise, if you don't like the sounds of that, and assuming your template is using wp_list_pages to create your tabs, then have a detailed read of:

    http://codex.wordpress.org/Template_Tags/wp_list_pages

    Everything you need is in there (just not quite as cool as NAVT)!

  5. jrjordan
    Member
    Posted 6 years ago #

    Thanks for your help. I think I found the solution, a plugin can just about solve anything--

    http://wordpress.org/extend/plugins/exclude-pages/installation/

  6. alexleonard
    Member
    Posted 6 years ago #

    Cool. Glad you found something that suited. If that works, please mark this topic resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic