• Resolved edufalcin

    (@edufalcin)


    Hello there. I have tried in several different ways to highlight the whole line, but I couldn’t.
    My current code is like this:

    [expand title =”TITLE” trigclass=”expandcollapse”]
    TEXT, TEXT, TEXT…
    [/expand]

    And I would like the whole line where is written TITLE to have a background color, but only this line.

    Any ideas?
    Thanks in advance!

    https://ww.wp.xz.cn/plugins/jquery-collapse-o-matic/

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

    (@baden03)

    what css have you defined for the expandcollapse class?

    Thread Starter edufalcin

    (@edufalcin)

    HI there!

    I forgot to mention that my skills in programming are very low! Hehehe…
    I haven’t tried using css, because I don’t know exactly how to apply to the fist line only.

    When I tried, it highlighted all the paragraph.

    Plugin Author Baden

    (@baden03)

    ok, when in your example:

    [expand title ="TITLE" trigclass="expandcollapse"]
    TEXT, TEXT, TEXT...
    [/expand]

    you are assigning the trigger a class of expandcollapse so what you now need to do is add the following to Dashboard > Collapse-O-Matic > Settings > Custom CSS:

    .expandcollapse {
         background-color: #00ff00;
    }

    More on the background-color css attribute.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Highlight a trigclass’ is closed to new replies.