• Resolved li0817

    (@li0817)


    Hi there.

    Actually, here’s what I’m doing.

    [expand title=”AAA” tag=”h5″ id=”1″ swaptitle=”BBB” excerpt=”CCC” excerpttag=”h2″] contents <span class=”collapseomatic colomat-close scroll-to-trigger” bot-id=”2″>[/expand]`

    Unfortunately, it doesn’t work.
    It seems had some conflict within. Such as “id” and “swaptitle”, you only can just choose one of them to make it work.
    Besides, I hope the “AAA” will be tagged on “h1” when hidden contents has been expanded.

    Is there any way to solve this?

    Many Thanks
    Dennis

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

    (@twinpictures)

    Hello.
    The problem might be that you never start an ID with a number.

    Here is an example of using and ID and Swaptitle at the same time.

    If you want to include a link to the page you have an issue with, maybe we can be of further assistance.

    Also, there is no ‘swap tag’ attribute, so the trigger will remain an h5. You can, however, change the CSS when it’s expanded or collapsed.

    Issue marked as resolved.

    Plugin Author twinpictures

    (@twinpictures)

    The proper way to format what you are trying to do is:

    [expand title="Trigger Text" tag="h5" ID="my_id" swaptitle="Swapped Trigger Text" excerpt="Excerpt" excerpttag="h2"]Hidden contents
    <span class="collapseomatic colomat-close scroll-to-trigger" id="bot-my_id">
    [/expand]
    • This reply was modified 5 years, 8 months ago by twinpictures.
    • This reply was modified 5 years, 8 months ago by twinpictures.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I use the “id” and “swaptitle” at the same time?’ is closed to new replies.