Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12586

    Hi. How would I remove the grandchildren subnav from the sidebar? Thanks.

    #76049

    Hi,

    Open up sidebar.php and delete following code:

    <?php
    if($post->post_parent)
    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=0");
    else
    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->ID."&echo=0");
    if ($children) { ?>
    <ul id="subnav">
    <?php echo $children; ?>
    </ul>
    <?php } ?>

    #76050

    Thank you very much!

    #76051

    Hey!

    Glad that I could help you :)

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘cubit sidebar: remove grandchildren’ is closed to new replies.