Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #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


    Please remove following code from sidebar.php:

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


    Thanks Buddy, that worked fine…


    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.