• Here is what I am trying to accomplish.

    My Theme does not have “drop down” menus, nor have I been able to get any plug-in to work to give me this support. So what I want is the next best thing since I can’t have that.

    I have added hyperlinks at the top of one of my “Pages” to take the viewer to other articles. These “articles” are “Pages.”

    The “Parent” page is “Gardening” and the “Sub Pages” are various gardening topics.

    If I “publish” what I want to be “Sub Pages” to the “Parent” page, rather than going into a “drop down, they appear as “buttons” alongside the “Parent” page. I see no functionality to this feature at all.

    I thought I had the work around, but of course not! I saved the “Sub Pages” as Private and it worked….that is until I discovered that the only reason it worked was because I was logged in as Administrator, as soon as I log out, all the links default to the .index page.

    This is probably real confusing, so here is the url to the page I am working with on so you can see what I am attempting:

    https://www.theruralindependent.com/gardening-supplies-information

    Thank you in advance for any help offered.

    (I really probably ought to switch to a Theme that will give me drop down support, so if anyone after seeing my page and how packed with content (4 columns) it is has any suggestions please let me know.)

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter dougf4

    (@dougf4)

    Didn’t like that much better!

    Here is the code as placed:

    <!– begin navigation –>

      <?php wp_list_pages(“depth=3&title_li=”); ?>

    <!– end navigation –>

    Here is the result:

    If this is in your header.php file, then please upload the entire content of it to something like https://pastebin.com and send me the link, i will sort out the code for you.

    Thread Starter dougf4

    (@dougf4)

    It is in pastebin under “dougf”

    Thanks so much!

    HELLo,

    Please replace your current header.php with this header.php, it should do the trick for you ??

    https://pastebin.com/m5295edc6

    HELLo,

    Sorry, i did a small mistake! In your code where you have this

    <ul class="nav">
    <?php wp_list_pages("depth=3&title_li="); ?>
    </ul>

    Replace it with

    <ul id="nav">
    <?php wp_list_pages("depth=3&title_li="); ?>
    </ul>

    And you should be all set ??

    Thread Starter dougf4

    (@dougf4)

    Holy Crap – it works!!! You are awesome.

    This was driving me so nuts because I migrated to this theme and lost this type of menu structure, but the search engines are holding all the url’s of the pages that are no longer displayed so I am having a lot of people and crawlers getting 404 errors as I am on a blitz campaign to attract visitors. This will help immensely.

    Thank you so much my friend!

    Doug

    HELLo,

    Anytime ??

    Thread Starter dougf4

    (@dougf4)

    ruh – rho…

    The second sub-page is not placed under the first, but to the right of it, in-line with it.

    HELLo,

    Inside your header file i added something named <style> css code </style>

    At the bottom of this, right before the </style> add the following code

    #nav li ul li {
            float: none;
            background-color:#7EA700;
    }

    That should do the trick ??

    Thread Starter dougf4

    (@dougf4)

    Voila! Another save, and another huge thank you!

    Hi,

    Almost same issue. I can create a subpage but it wont show up if i hover over the parent page w/c is a navigation bar. need help

    What have you done so far? Have you worked through the suggestions here? You probably need to increase the depth in your theme as suggested by @frosken in about post#12 here…..

    Hi,

    Tried #12 but it simply duplicates the nav bars(pages) of the top portion of the header w/ the bottom ones. this is the code in my header file:

    <div id=”pages”>

      <?php wp_list_pages(“sort_order=$artsee_order_page&depth=1&exclude=$artsee_exclude_page&title_li=”); ?>

    With this all pages in the dashboard will show up as nav bar (top to bottom of the header) but not the subpages. Increasing the depth will make the subpage a “permanent” nav bar. dont want that. I just want the subpage to be seen if i hover on the parent page.

    right, so you are halfway there…..you do need to increase the depth….however you need to apply styling in your css to get the child pages to behave the way you want…

    unfortunately, dropdown menu’s aren’t my strength..yet (I’ve never needed to use them on my theme)

    look for some tutorials online maybe:
    https://ago.tanfa.co.uk/css/examples/menu/tutorial-h.html#menref
    https://www.coalmarch.com/coalmarch-blog/20080701180/super-easy-5-minute-pure-css-drop-down-menu-tutorial.php

    Maybe one of them can help you…..

    I’ll do that. thanks

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Adding Pages Under “Parent” – How?’ is closed to new replies.