Support » Plugin: Collapse-O-Matic » HTML inside

  • Resolved thomaskarl

    (@thomaskarl)


    Hi, I doesn’t seem to find any info about this.
    How can insert plain old HTML inside the ‘hidden’ content?
    Great plugin btw:-) Keep up the good work!

    I have tried this:

    [expand title="Read more" trigclass="noarrow"]
    <h1>XYZ</h1>
    [/expand]

    and this

    [expand title="Read more" trigclass="noarrow"]
    %(%h1%)%XYZ%(%/h1%)%
    [/expand]

    without any luck…

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

    (@twinpictures)

    the correct way to do this would be the first example:

    [expand title="Read more" trigclass="noarrow"]
    <h1>XYZ</h1>
    [/expand]

    However, much would depend on where you are adding the shortcode and how.
    Are you using a visual page creator? Gutenberg blocks? WordPress Classic Editor?
    Are you adding your HTML in an HTML element? In visual or Text mode?

    Are you able to enter in HTML at all, even without using the expand shortcode?

    thomaskarl

    (@thomaskarl)

    Ok, I see! Thanks for the fast answer.
    I tried first using a page builder, didn’t work.
    Then I tried in the Classic editor, it is working!
    I then tried in Gutenberg, it is working but did get some strange formating error, but the front end is working.
    Thanks again!

    Plugin Author twinpictures

    (@twinpictures)

    we’ll have to look into adding a more Gutenberg block-friendly version.. but glad you got it working!
    All the best.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML inside’ is closed to new replies.