Support » Themes and Templates » Why am I getting a bullet in the sidebar?

  • I am new to WP and love it. But I can’t work something out. I always get a bullet in my sidebar on one headline, presumably because that particular headline is seen as a list. But I can’t see why this is happening, or prevent it. Can anyone advise please? The site is and the sidebar headline is ‘Site favourites’. The bullet is next to the text in Safari but in the main body in Firefox. I am baffled – I thought I’d just amended the sidebar code the theme, Connections, came with. This is now…
    <?php wp_list_pages(‘title_li=<h2>’ .__(‘Site favourites’) . ‘</h2>’ ); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • Search your css file (style.css) for li declarations, and make sure they include this line: list-style:none; If some don’t, add it in, assuming you never want bullets.

    Thanks for your help. I inserted those things into the style.css as suggested but the problem is still there. I also tried going back to the original template as downloaded and that generates the same problem and the validation message
    Error Line 181, column 21: document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag .
    <li class=”pagenav”><h2>Pages</h2>

      <li class=”page_item”><a href=”http://sa

    Perhaps it’s a problem with the template. I can’t see where the li class pagenav is coming from – it doesn’t seem to be in any of the template files I can find.

    I thought I’d look around for an alternative theme that might fix this. I found this one, Fastrack – and it has the same problem, a list bullet on the Pages line in the sidebar. Is this because I am using Safari and Firefox? It’s an entirely different theme.

    I was having the same problem with the FastTrack theme and traced it to the way its sidebar.php outputs the heading and list for pages:

    1. Open sidebar.php
    2. Find:

    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>

    3. Replace with

    <ul><?php wp_list_pages('title_li=' ); ?></ul>

    A couple of months overdue, but hope this helps you out.

    Thanks for the info. In fact I moved to the K2 theme which is a lot easier for me to handle (though I’m sure I’ve broken it in no end of ways).

    Wow, I was having exactly the same problem on my site, and that fix mejane posted did the trick. Thanks!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Why am I getting a bullet in the sidebar?’ is closed to new replies.