WordPress.org

Ready to get started?Download WordPress

Forums

Category -Bullet Question (15 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    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

  2. TechGnome
    Moderator
    Posted 10 years ago #

    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

  3. Anonymous
    Unregistered
    Posted 10 years ago #

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

  4. WillM
    Member
    Posted 10 years ago #

    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.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    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)

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  7. tcervo
    Member
    Posted 10 years ago #

    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

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  9. WillM
    Member
    Posted 10 years ago #

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

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    Yeah. OK. Clarity never hurts. ;)

  11. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  12. Anonymous
    Unregistered
    Posted 10 years ago #

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

  13. at all?
    Like I would like to have my categories like

    Category 1
    Category 2

    etc...
    10x in advance!

  • Cena
    Member
    Posted 10 years ago #

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

  • Anonymous
    Unregistered
    Posted 10 years ago #

    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?

  • Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.