Forums

How-to unlink the parent pages (10 posts)

  1. drflet
    Member
    Posted 4 years ago #

    Hi,

    Working on a site with a drop-down menu....demo can be seen at skimdeep.net.

    My problem is that I would like the main categories in the navigation bar...products, services, etc. ... not to be clickable and only for the subpages beneath them to be active links. Is there a way to accomplish this?

    Many thanks-
    Dan fletcher

  2. drflet
    Member
    Posted 4 years ago #

    Anyone?

  3. drflet
    Member
    Posted 4 years ago #

    Please?

  4. drflet
    Member
    Posted 4 years ago #

    Pretty please?

  5. drflet
    Member
    Posted 4 years ago #

    Can I please get some help?

  6. drflet
    Member
    Posted 4 years ago #

    $5 Paypal to anyone who helps.

  7. marsie
    Member
    Posted 4 years ago #

    I'd be interested in this solution as well.

  8. cowboyecosse
    Member
    Posted 4 years ago #

    All I can think of is removing the link in your theme files.

    <li class="page_item page-item-3 current_page_item"><a href="http://skimdeep.net" title="Home">Home</a></li>
    <li class="page_item page-item-4"><a href="http://skimdeep.net/products/" title="Products">Products</a>

    would become

    <li class="page_item page-item-3 current_page_item"><a href="http://skimdeep.net" title="Home">Home</a></li>
    <li class="page_item page-item-4">Products

    I imagine that's easier said than done though as this is probably pulled from the DB table.

    I tried un-publishing parent level pages but that removed them from the menu(along with the child pages)

    Will be good to see the answer to this.

  9. marsie
    Member
    Posted 3 years ago #

    My header.php file is using:

    <?php wp_list_pages('title_li='); ?>

    to list out my navigation, so I can't seem to figure out a way to do it so that WordPress dynamically lists the parent pages and subpages for me (while leaving the parent page unlinked)... unless I manually hard code my parent pages with their subpages.

  10. Michael Dance
    Member
    Posted 3 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic