WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
Add spacing between list items (6 posts)

  1. mgreis
    Member
    Posted 1 year ago #

    I want to add some spacing between the items in the list of posts displayed. I could accomplish this if I could style the <li> tag with a line-height parameter. The class= parameter allows me to specify a CSS class for the <ul> tag, but not the <li> tag.

    Is there some other way to add spacing between the list of posts displayed?

    http://wordpress.org/extend/plugins/list-category-posts/

  2. mgreis
    Member
    Posted 1 year ago #

    I found the answer to my question.

    Use the class= tag to create a class for the <ul> tag.

    class=lcp

    In the style.css for your theme, add an entry like this:

    ul.lcp li {
    line-height: 1.5;
    }

    which applies the line-height property to the child list item of the list that is being styled by the class parameter of list category posts.

  3. linjian001
    Member
    Posted 1 year ago #

    Good,thank you!
    Thanks a lot!

  4. linjian001
    Member
    Posted 1 year ago #

    The same as: autor_tag, author_class, catlink_tag, catlink_class, comments_tag, comments_class, date_tag, date_class,
    excerpt_tag, excerpt_class, morelink_class, thumbnail_class, title_tag, title_class

    refer to:other_notes
    http://wordpress.org/extend/plugins/list-category-posts/other_notes/

  5. Core
    Member
    Posted 10 months ago #

    Okay, so this is what I have been scrolling the forum looking for.

    I understand the answer, but I don't know where to create the class at..
    Where, what file, do I add class=lcp for the
    <ul > tag ?

  6. mgreis
    Member
    Posted 10 months ago #

    Add class=lcp to the [catlist] statement in the post or page where the list appears:

    [catlist name=rts-solar-faq orderby=date order=ASC numberposts=10 offset=0 class=lcp]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.