• I am working on a blog for a client that has a page list that has been hard coded into the theme’s sidebar. It appears at the bottom under the contact form. (I didn’t create this theme and it doesn’t have widgets) I have been trying to remove the list but can’t seem to do it. I went into the php code for the Page Template.php and anywhere it said submenu and tried removing it but nothing happened. The page is at:
    http://www.disccert.com/grads/
    The page list is supposed to be password protected but the sub-pages are coming up and can be accessed. (that’s another issue)

    The code I tried to remove was:

    <?php
    $children = wp_list_pages(“title_li=&child_of=”.$root_parent_id.”&sort_column=menu_order&echo=0″);
    if ($children) { ?>
    <ul id=”submenu”>
    <?php echo $children; ?>

    <?php } ?>

    She doesn’t want to do a membership site so I need to find a solution ASAP. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • as you are working with a custom made theme, there is not much this forum can help you with;

    does the theme have a sidebar.php file?

    possibly try to disable the cache while you are doing customisations.

    Thread Starter ayoungvoice

    (@ayoungvoice)

    Yes the theme is custom and is a big pain. I hope I will be able to convert it to a premium theme soon but the client isn’t ready. It doesn’t have a sidebar.php. The sidebar is coded into the Page Template.php but when I try to remove the code with the $children=wp_list pages – submenu”>(above) , it doesn’t disappear. I can’t de-activate WP Super Cache because it asks that I edit the htaccess file to deactivate it and I’m not sure how to do that. Caching is currently turned off.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delete Page list from sidebar’ is closed to new replies.