• Resolved Marian Yordanov

    (@marian-yordanov)


    Hello,

    1. I need to have the “Expand the whole text …” and to have a second line (placed at the end of the blog post) saying “Collapse the whole text”: obviously the first line should open the whole post and then clicking the “Colapse …” line should hide the previously expanded text.
    2. Is there a way to prevent the expanded text moved slighly to the right (left indent) (https://alexlaw.pro/doctor-patient-relationship/)?

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

    (@baden03)

    Hi.
    1. Read the documentation on Internal Collapse Trigger
    2. Yes. Add the following CSS to the Custom Style: section under Dashboard > Settings > Collapse-O-Matic:

    .collapseomatic_content{
    margin: 0;
    }

    please let us know if this resolves this issue for you.

    Thread Starter Marian Yordanov

    (@marian-yordanov)

    Brilliant!. Thank you for the quality support!
    1. Can we apply the “Strong” attribute to the second (collapse) trigger?
    2. Can we apply custom font color for both triggers?

    Plugin Author Baden

    (@baden03)

    Yes and yes. For both you will need to read the documentation on the trigclass attribute.

    You would first set up your css (again, using the Custom Style section under the plugin options page) and set the font-weight and color properties.

    .my_bold_class {
    font-weight: bold;
    }
    .my_color_class {
    color: #00ff00;
    }

    Now you can assign these classes using the trigclass like so:

    [expand title="trigger 1" trigclass="my_bold_class my_color_class"]...[/expand]
    [expand title="trigger 2" trigclass="my_color_class"]...[/expand]

    Hope this resolves your issue.

    Thread Starter Marian Yordanov

    (@marian-yordanov)

    I had 50% success:

    The code for the opening trigger (and works fine) is:
    [expand title=”Read more …” trigclass=”my_bold_class my_color_class” id=”Test1″]

    The code for the closing trigger (does not work) is:
    <span class=”collapseomatic colomat-close” trigclass=”my_bold_class my_color_class” id=”bot-Test1″>Click here to close the expanded text</span>[/expand]

    What I am doing wrong?

    Plugin Author Baden

    (@baden03)

    closing trigger would look like this:

    <span class="collapseomatic colomat-close my_bold_class my_color_class" id="bot-Test1">Click here to close the expanded text</span>

    Thread Starter Marian Yordanov

    (@marian-yordanov)

    Thank you!
    All works now.

    Plugin Author Baden

    (@baden03)

    great. Issue marked as resolved. If you are happy and you know it, please consider leaving a plugin review!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘"Expand" and "Collapse"’ is closed to new replies.