WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to change category list display (13 posts)

  1. dalecom
    Member
    Posted 8 years ago #

    Hello if you look here - http://www.allpokerworld.com/
    The categories list has the numebr of posts below the cat name. This is because the number of posts (1) etc is outside the li tag.
    What file do I have to edit to correct this ?

    Thanks a lot

  2. moshu
    Member
    Posted 8 years ago #

    style.css

  3. dalecom
    Member
    Posted 8 years ago #

    No its not that - the number of posts : (1) bit of html is outside the li tags - I need to know which file this is located in so I can move it inside them.

    Thanks.

  4. moshu
    Member
    Posted 8 years ago #

    Well, if you know better, don't ask.
    It has been asked 100 times, I always give the same answer. It worked for others... but you can try whatever you want.

  5. dalecom
    Member
    Posted 8 years ago #

    Im not using a default template, my css is from scratch so I know for a fact its not in style.css.
    This is an html problem which is why I asked which php file I need to edit to bring it inside the li tags.

    Anyone else have any ideas ?

  6. moshu
    Member
    Posted 8 years ago #

    I know for a fact its not in style.css.

    You know nothing. I'll not argue, and I won't even tell you how to correct it... Be happy with your knowledge :)

  7. dalecom
    Member
    Posted 8 years ago #

    No need to be like that is there, I'd expect better from a moderator.
    If you do a view source on my code you will see the problem is with the html, not css.

  8. moshu
    Member
    Posted 8 years ago #

    The moderator gave you an answer in 14 minutes after you posted your question. Actually, the correct answer.
    If you didn't know what to edit in the stylesheet, you should have asked.
    You chose to argue... The moderator doesn't like people who argue without trying the solution they were offered.

    The moderator can see not only your source code but also, using the Dev Toolbar, is able to change/edit your stylesheet on the fly to check that the solution offered works. It works.

    Change the display: block to display: inline.

    And next time don't be lazy, do a search before posting, your question has been answered many times.

  9. deanhatescoffee
    Member
    Posted 8 years ago #

    This thread makes me giggle a little. ;)

  10. dalecom
    Member
    Posted 8 years ago #

    Yes I know that way would put the number of posts on the same line, it also mucks up the 1px border I have under each li by making them uneven lengths - ie the same length as the text rather than a set width, which is why I want to edit the html to put them within the li tag.

  11. moshu
    Member
    Posted 8 years ago #

    You cannot edit the html, and you should know that if you know everything better. That list is generated, it is not hardcoded.

  12. dalecom
    Member
    Posted 8 years ago #

    sigh

    Yes and I am asking in which php file the html is generated

  13. dalecom
    Member
    Posted 8 years ago #

    Its ok, have found it.
    If anyone else has this problem and doesnt want to deal with these useless moderators,
    You need to edit wp-includes/template-functions-category.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags