Forums

Removing list titles from sidebar (5 posts)

  1. ornmnt
    Member
    Posted 2 years ago #

    Hello,

    I'm desperately trying to find a way to remove the title above the list of pages in my sidebar.

    For reference, the website is at http://www.c-bop.com

    "Information" is the text I input in the Pages widget, and the links below are the pages. In other words, I would like to remove "Information" from the sidebar completely and just begin with "About us, Mission statement..." etc.

    Is this possible? I have not been able to find an answer anywhere online.

    I think this might be the relevant code from the sidebar.php (I'm using the GrayLines theme, btw...):

    <?php wp_list_pages('depth=3&title_li=<h2>Pages</h2>'); ?>

    I've tried all sorts of things, like removing everything inside the (), but to no avail. I must admit, I know nothing about PHP, so I hope someone might be able to offer some insight.

    Many thanks in advance!

  2. SpankMarvin
    Member
    Posted 2 years ago #

    If you're using a widget, can't you just remove the title from the widget?

  3. ornmnt
    Member
    Posted 2 years ago #

    Unfortunately, no. It just defaults to "Pages" I think.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try:
    <?php wp_list_pages('depth=3&title_li='); ?>

  5. ornmnt
    Member
    Posted 2 years ago #

    Thanks for that, Esmi, but unfortunately it didn't have any effect. I wonder if it might be something that needs to be modified in the widget's code?

Topic Closed

This topic has been closed to new replies.

About this Topic