• Resolved roosmarie

    (@roosmarie)


    Hi,

    I wish to create a trigger that is integrated in a sentence, but in a way that the hidden content will be displayed the line below (so not inline).

    I used the suggestions from this post, but cannot figure out how to get the desired effect.

    Hidden text displayed line below (which I want), but rest of sentence as well (which I don’t want):

    ...However, when <span id="testme1" class="collapseomatic" title="this trigger">this trigger</span>
    <div id="target-testme1" class="collapseomatic_content">hidden content</div>
    is clicked...

    Sentence continues after trigger, but ‘hidden text’ appears inline as well (which I want to appear below):

    ...However, when [expand tag="span" title="this trigger" targtag="span"]hidden content[/expand] is clicked...

    Any answer is welcome!

    Best, roosmarie

Viewing 1 replies (of 1 total)
  • Plugin Author twinpictures

    (@twinpictures)

    In the first example, the target is a div which is a block element, so it will always cause a break in the text.

    The second example, both the trigger and target are span (inline) elements.

    You could try using targtag=”maptastic” but this would only display the content correctly before it is expanded the first time.

    The plugin does not currently support switching the target element tag or class when the state changes. If you absolutely need this, we would be happy to added it to collapse-pro-matic as it would be an advanced feature.

    • This reply was modified 5 years, 3 months ago by twinpictures.
Viewing 1 replies (of 1 total)
  • The topic ‘Trigger inline/Hidden content after break’ is closed to new replies.