WordPress.org

Ready to get started?Download WordPress

Forums

Subpages not nesting in Tropicala theme (6 posts)

  1. slpparish
    Member
    Posted 5 years ago #

    I have been trying unsuccessfully for several hours now to get my subpage links to be nested under my Page links. I have referred to the codex info on wp_list_pages to try to do this, but I still cannot get the subpage links to be nested within the page links. (In other words, I want the link to the Case Studies page to be nested under ad visible when hovering over the Clients page link.) By the way, I am using the Tropicala theme.

    I have pasted the code from my header.php file below and hope that someone can tell me what I need to change within this file (or another) to correct this problem? Thanks!

    <body>

    <div id="wrapper">

    <div id="masthead">

    <h1>/"><?php bloginfo('name'); ?></h1>

    <p><?php bloginfo('description'); ?></p>

      <li <?php if(is_front_page()) { ?>class="current_page_item"<?php } ?>>
      <?php wp_list_pages('sort_column=menu_order&title_li='); ?>

    <div id="masthead_image">

    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/kitchen.jpg" alt="Flower" />

    </div>

    </div>

    <div id="content" class="clearfix">

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    A link to your site would help.

  3. slpparish
    Member
    Posted 5 years ago #

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    You need a dropdown/flyout script to create the effect you're looking for. Have a look at Son of Suckerfish Dropdowns.

  5. slpparish
    Member
    Posted 5 years ago #

    Esmi, thanks for your advice, but I was hoping for something a lot less complicated than that. I am new to WordPress and CSS. I have seen posts in this forum talking about changing the value of "depth" or something to help out with this. I may be naive, but I would think (and am hoping), I can tinker only slightly with the CSS code to achieve this.

    Can anyone suggest an easier solution?

  6. esmi
    Forum Moderator
    Posted 5 years ago #

    The depth parameter won't help you create dropdowns but you can find all of the details on the wp_list_pages page (and that's a mouthful!).

    Also, pure CSS dropdowns are extremely complex and difficult to pull off properly. They can make Son of Suckerfish look like a walk in the park.

    The only other option I can think of is to look for a plugin but I've no idea how good/bad any of them are.

Topic Closed

This topic has been closed to new replies.

About this Topic