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

    Hello, I’ve bought this and Twicet themes for a couple of projects and would like to remove the feature where child pages list is shown in the sidebar by default. (on child pages) I have played about with sidebar.php and think this might be the text to edit?! Please can you advice, thanks

    #37190

    Please remove following code from sidebar.php:

    <?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 } ?>

    #37191

    Thanks Buddy, that worked fine…

    #37192

    Glad that I could help you.

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

The topic ‘Side menu listing Child pages’ is closed to new replies.