WordPress.org

Support

Support » Themes and Templates » Category -Bullet Question

Category -Bullet Question

  • I just upgraded to version 1.0.1 and saw that before every <?php the_category() ?> tag in the WP loop, a bullet is put. Which file I have to modify so that no bullet is put in front of the category?
    10x in advance

Viewing 14 replies - 1 through 14 (of 14 total)
  • TechGnome

    @techgnome

    Moderator

    wp-layout.css … find the meta li definition, set the list-style-type setting to none.
    Example
    list-style-type: none;
    That’s it.
    TG

    still doesn’t work – even if I even deleted the wp-layout.css from the server and still there is a bullet in front of the category name…

    That’s because the bullet is generated by the WordPress code. It is possible to get rid of it by modifying the php call for the category:
    <?php the_category (‘,’) ?>
    however the recommended method is to hide it in the CSS as TG suggested.
    We get a lot of questions on this. I’m surprised it didn’t come up when you searched before posting.

    10x a lot! 🙂
    I have quite a trouble with removing the bullets from various tags – from the
    – <?php list_cats() ?>
    – <?php get_archives() ?>
    and <?php get_links() ?>
    Generally, which files determine the presence of bullets? (I have all the wp-layout.css files not uploaded, but still there are bullets)

    These guys are right. There is absolutely no need to edit the index xhtml or heaven forbid the php in order to get the functionality/style you want. Lists by default come with a bullet. The bullet is removed by using css in wp-layout. The necessary style rule is explained above. That is it. Period.

    Exactly as the Anon’s have said. Just make sure you are changing the correct line in wp-layout.css:
    .meta ul {
    display: inline;
    margin: 0;
    padding: 0;
    list-style: none;
    }
    The list-style: none; will get rid of the bullets. I like to have mine display on a single line, so I also use display: inline;
    The *only* way to get lists to display without the bullets is in your css file. Deleting the wp-layout.css file will not, therefore, solve the problem.
    (Is it just me, or does this issue start anew about once a week???)
    -Tony

    Sorry WillM but you sent the guy off at a tangent by suggesting bullets were generated “by the wordpress code”. Default list behaviour is in the xhtml specification. Word Press has nothing to do with it.

    OK, but if WordPress isn’t inserting the list markup – default behavior for which IS a bullet – how is it appearing? Magic?

    Yeah. OK. Clarity never hurts. 😉

    I’m very sorry to bug you again.
    I do get it that the presence of the bullets is coming from the css, but I’m not using the wp-layout.css
    I put the following code

    .meta ul {
    display: inline;
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
    }
    .meta li {
    display: inline;
    list-style: none;
    list-style-type: none;
    }

    in my other css and still there are bullets. Simply cannot figure it out.

    sorry – I finally figured it out!
    but another question arouse – is there a way of not using

  • at all?
    Like I would like to have my categories like

    Category 1
    Category 2

    etc…
    10x in advance!

And for future reference, see NuclearMoose’s awesome take on this:
http://wiki.wordpress.org/index.php/Bullets

10x a lot! 🙂
However, in IE 6 there is an extra indentation for each < li > while in Mozilla based browser everything is ok. Any ideas how to fix this?

The anon post above cena’s is displaying H & V scrollbars even though the content is nowhere near as wide as the *box*. I am on FF.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Category -Bullet Question’ is closed to new replies.
Skip to toolbar