Support » Plugin: Collapse-O-Matic » Styling "Title" attribute

  • Resolved chazy


    I need to add styling to the Title attribute (the trigger text). All I need actually is to have the ability to insert html tags such as h2, h3, etc inside it. The “Tag” attribute assigns an html element for the whole title — I need more to be more refined like to have:

    Title="<h2>My name</h2><h3>, my title</h3>"

    Thank you in advance!


Viewing 3 replies - 1 through 3 (of 3 total)
  • The following example from documentation suggests we can use html tags in “Title”:

    [expand title="<img src='falcon_girl.jpg' />" tag="div" alt="Falcon Girl"]Target Content[/expand]

    However, this doesn’t work for me, as the whole <img src='falcon_girl.jpg' /> actually displays (view-source reveals that the tag is surrounded by double-quotes, effectively making it text).

    Answering myself:

    It’s entirely possible to use html tags into the “Title” tag. However, if you use the “Tag” directive, it overwrites it. Didn’t work for me because I still had the “Tag” there.

    Plugin Author Baden


    Correct. The tag attribute wraps the entire trigger.
    Glad you got it figured out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Styling "Title" attribute’ is closed to new replies.