• Resolved Lock

    (@locksoft)


    Hi, I need to assign a class to a drawer.

    I tried with ID and it perfectly works but, as I need to use a CSS tag several times I cannot use ID.

    I tried the following tags: class, elwrapclass, trigclass and targclass. None of them assign a class to a drawer. If I watch the page HTML I see something like:

    <div class=”collapseomatic ” id=”id9602″>

    What can I do to make a “class” tag appear there?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Lock

    (@locksoft)

    The result I need is something like this:

    <div class=”collapseomatic MY_CLASS” id=”id9602″>

    Plugin Author twinpictures

    (@twinpictures)

    What is being referred to by ‘drawer’?
    How are you generating the expand elements, by using a shortcode, or the roll-your-own method?

    If the shortcode is being used:
    To assign a class to a TRIGGER, use the trigclass attribute.
    To assign a class to a TARGET, use the targclass attribute.

    In the example you provided:
    <div class="collapseomatic MY_CLASS" id="id96022>
    This is a trigger, dude to the collapseomatic class. Therefore, the trigclass attribute would be used like so:

    [expand title="trigger text" trigclass="my_class"]target text[/expand]
    

    If you can be more specific on what you need, we will provide a more specific answer.

    Thread Starter Lock

    (@locksoft)

    Wow, so quick answer!

    In the meantime, doing some tests, I started to understand what trigclass and targclass mean, and it is very clear.

    Sorry Twinpictures, I didn’t realized that trigger and target were on the same level. I was thinking that somehow the trigger contained the target so, assigning a class to a wrapper, it worked for both.
    I was tricked by the ID tag, if I use it, it somehow control both.

    To make you understand better, if I used the “READING” ID, I wanted some elements of both items (trigger and target) to be hidden, and it worked.
    But I’m not very good in CSS and I notice there’s a #target-READING in the code, that maybe works for ID but not for class.

    In short words, sorry, I opened an useless post. But at least it helped me to understand how Collapse-o-matic works. ??

    Plugin Author twinpictures

    (@twinpictures)

    No worries! Glad you got things figured out.
    Consider leaving a little review of the plugin or its support!
    Issue marked as resolved.

    Thread Starter Lock

    (@locksoft)

    Just left a quick review.
    So many years I’m using this plugin, many thanks. ??

    Plugin Author twinpictures

    (@twinpictures)

    very kind of you, thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Assigning a class to Collapse-o-matic drawer’ is closed to new replies.