Support » Your WordPress » How to get rid of the “Page Name Subpages” heading in the left column

  • Hi

    I created a “Contact Us” page which is accessible via a link in my theme’s horizontal menu. However when I browse to the page, a “Contact Us Subpages” heading appears in the left column of the theme. No such heading appears when I browse to the “About Us” page. Is there a way to get rid of this heading as no sub-pages will be created for the “Contact Us” page.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    A link to your site might help…

    The site is on localhost at the moment m8. Its probably a template feature where some sort of WordPress function is being called. I just created a test page named “Test Page” and when I browsed to it, a Test Page Subpages heading appeared in the template’s left column. This just requires a some code to be removed from one of the template files I reckon.

    Edit: OK just as I suspected. I opened the template’s “sidebar.php” file and removed the following code:

    <h2 class="sidebartitle"><?php echo $parent_title; ?> <?php _e('Subpages'); ?></h2>

    This got rid of the unwanted header. Additionally, there was a query which appeared to contain the logic to generate the sub-pages menu which I gather had to be removed as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get rid of the “Page Name Subpages” heading in the left column’ is closed to new replies.