WordPress.org

Ready to get started?Download WordPress

Forums

Posts By Tag
Tags can cause css confusion (7 posts)

  1. Bodhipaksa
    Member
    Posted 1 year ago #

    I just wanted to flag up that one list item in my list of posts was displaying weirdly, and drifting off to the right of the rest of the list. It turned out that one of the tags for that post was "right livelihood," and the plug was pulling the tags into the class for the list item. Since that one item now had a class of "right" the list item was picking up on the class for floating items to the right. It's something to watch out for.

    http://wordpress.org/extend/plugins/posts-by-tag/

  2. Sudar
    Member
    Plugin Author

    Posted 1 year ago #

    It is an extremely corner case, but thanks for reporting this.

    I might add an option to not add tags as class names to fix this if enough people are facing this type of issues.

  3. WebDragon
    Member
    Posted 11 months ago #

    or you could prefix each tag class with tag-* which would also eliminate it

  4. Sudar
    Member
    Plugin Author

    Posted 11 months ago #

    @WebDragon,

    That's a nice suggestion.

    The only problem is that there are already lot of people who are using the Plugin as it is and have changed their CSS to work. If I implement it now, it might break those pages :(

  5. Bodhipaksa
    Member
    Posted 11 months ago #

    Could you make that feature an option? It would be nice not to have to be concerned about css conflicts.

  6. lgespee
    Member
    Posted 8 months ago #

    I also experienced this issue.

    I was using a tag called 'logo', which resulted in a few posts links receiving all the CSS given to the website logo by a theme I used.

    It would be really nice if an option could be used to specify:

    1. add tags as class names (backwards compatibility mode)
    2. prefix class names with 'tag-' (@WebDragen suggestion)
    3. don't include tags as class names at all (keeps your HTML small)

    Thanks in advance.

  7. Sudar
    Member
    Plugin Author

    Posted 8 months ago #

    Okay. Added this to the todo list. Will implement it when I get some free time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.