WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
[resolved] Different style for different pages ( style for catlist?) (3 posts)

  1. jacky_K
    Member
    Posted 1 year ago #

    Hi! I want to make a list in two columns. It is easy through CSS

    .lcp_catlist ul{
     list-style-type:none;
     width:600px;
     }
     .lcp_catlist li {
     float:left;
     margin: 20px 0 0 0;
     padding: 0 20px 0 0;
     width:250px;
     }

    But this style is used globally. How to use a different style of style to different lists?
    Code catlist _class=lcp_catlist1 don't work

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

  2. fernandobt
    Member
    Plugin Author

    Posted 1 year ago #

    Please, for the love of the Flying Spaghetti Monster, read the Documentation.

    The correct parameter is not "catlist_class", it's just "class" if you want to style the ul:

    class - CSS class for the default UL generated by the plugin.

    Thanks!

  3. jacky_K
    Member
    Posted 1 year ago #

    Thank you. That work:
    [catlist id=35 tags= universal orderby=title class=class_for_post1]
    and
    [catlist id=35 tags= universal orderby=title class=class_for_post2]

    Example CSS

    .class_for_post1 ul{
     list-style-type:none;
     width:600px;
     }
    
    .class_for_post2 ul{
      width:100px;
     }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.