WordPress.org

Ready to get started?Download WordPress

Forums

Why am I getting a bullet in the sidebar? (8 posts)

  1. bodsham
    Member
    Posted 8 years ago #

    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 http://www.save-wye.org 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>' ); ?>

  2. Usayd
    Member
    Posted 8 years ago #

  3. vkaryl
    Member
    Posted 8 years ago #

    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.

  4. bodsham
    Member
    Posted 8 years ago #

    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.

  5. bodsham
    Member
    Posted 8 years ago #

    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.

    http://managedtasks.com/wpthemes/blog/index.php?wptheme=FastTrack

  6. mejane
    Member
    Posted 8 years ago #

    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

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

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

  7. bodsham
    Member
    Posted 8 years ago #

    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).

  8. livinginstereo
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags