Support » Plugin: Collapse-O-Matic » Using swaptitle attribute to hide stylized expand button

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Baden

    (@baden03)

    if you have build the button exactly as the example then you see that the button has a class of colomat-visited after it has been clicked once.

    Simply add the following css:

    .colomat-visited {
       display: none;
    }

    keep in mind this will affect all collapse elements globally across your site. If you want to add this only to specific buttons, you will need to also use a unique class to the triggers and then change the css like so:

    .your_unique_class.colomat-visited {
       display: none;
    }

    Let us know if that does it for you.

    Plugin Author Baden

    (@baden03)

    Any joy getting this to work?

    Thread Starter gndesign

    (@gndesign)

    Hi Baden, Thank you for your great response.
    Adding the .colomat-visited class solved the issue!
    I will mention that I am unable to find where exactly to apply the unique class, but that may just be an issue with my theme and rapid composer. I will experiment more.
    Thank you!

    Plugin Author Baden

    (@baden03)

    the colomat-visited class will be auto-applied to any collapse element once it is clicked on the first time.

    Plugin Author Baden

    (@baden03)

    ah, and to apply the unique class, check out the documentation on using the trigclass attribute.

    Thread Starter gndesign

    (@gndesign)

    Hi Baden, Thank you once again for the help!
    Applying a unique class using the trigclass attribute solved my problem!
    (I think I accidentally used targclass initially)
    Thank you!

    Plugin Author Baden

    (@baden03)

    Huzzah! Glad you got it sussed out. Issue marked as resolved.
    If you are pleased with the plugin or it’s support, please consider leaving a review.

    Thread Starter gndesign

    (@gndesign)

    Great, thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Using swaptitle attribute to hide stylized expand button’ is closed to new replies.