• Resolved ludwigt

    (@ludwigt)


    Hello

    First of all I’d like to express my gratidue for this very fine and functional plug-in! It is really handy and I hope an answer to this question might make it handier yet, at least for me. ??

    On my site I have a LCP UL container I want cented-aligned.
    In order to achieve this without affecting the other LCP UL containers on the site I figured I have to use the LCP identifier class and have a special style for it:

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

    When I add

    class=’centered’

    , reload the page and look at the source code there has been no addition to the UL class list:
    <ul class=”lcp_catlist”>

    When I try the thumbnail_class it works just as expected.

    Is there something I have missed here or is there some quirk only I have encountered?

    Any ideas, folks?

    Kind regards
    Ludwig T

    https://www.ads-software.com/plugins/list-category-posts/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Fernando Briano

    (@fernandobt)

    I haven’t been able to reproduce this issue. Using this:
    [catlist id=1 class='centered']
    I get:

    <ul class="centered">
        <li>...

    What version of the plugin are you using?

    Thread Starter ludwigt

    (@ludwigt)

    Hello picandocodigo

    Thank you for your reply.

    The plug-in version I am using is 0.37.

    I did exactly what you did, using id instead of name and removed all identifiers save for class.
    Also attempted to use other categories but the result is still the same.

    Curious, the behaviour functions fine for the rest of the class-identifiers though.
    If there is a plug-in collision going on I would expect the other CSS class identifiers to be affected too.

    Thread Starter ludwigt

    (@ludwigt)

    Additional information:

    I am using a child theme and copied the default template here:
    child-theme/list-category-posts/default.php

    The default.php says it is version 0.9 but I noticed some changes in order of the $lcp_display_output string assignment.

    So I updated the default.php with this changed code and it didn’t seem to change anything.
    I also noted that the date is not wrapped by SPAN elements as it should be when you define date_class.

    thumbnail_class is the only identifier that works for me.

    To solve the problem I created separate templates for the different catlists and called for them in the shortcodes.

    Plugin Author Fernando Briano

    (@fernandobt)

    I think the template code replaces the class parameter, so you should create a template with the class you want to use.

    I haven’t checked that code recently, but I think most of the “display” parameters are replaced when using the template.

    Thread Starter ludwigt

    (@ludwigt)

    Hi again

    Yes that would make sense.
    Perhaps this ought to be mentioned on the Other Notes page, or someplace else?

    I think the LCP templates are very simple and straight-forward and anyone should be able to work with them, if only they have a wee bit of programming knowledge.

    Thanks again for your responses, I hope this thread might help others who encounter the same quirk.

    kind regards
    /Ludwig Tr

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The 'class' identifier in LCP’ is closed to new replies.