• Resolved dakotadearborn

    (@dakotadearborn)


    I’m trying to use this plugin for a H2 tag and display the paragraph text underneath. I can’t seem to figure it out nomatter what I try. I’m working on a resources page trying to take away a lot of the bulk.

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

    (@twinpictures)

    have you tried:

    [expand tag="h2" title="My H2 Title"]paragraph text[/expand]
    

    or using the roll-your-own method:

    <h2 class="collapseomatic" id="my_id">My H2 Title</h2>
    <div id="target-my_id" class="collapseomatic_content">
    <p>paragraph 1</p>
    <p>paragraph 2</p>
    </div>
    
    Thread Starter dakotadearborn

    (@dakotadearborn)

    The first option you mentioned looks promising but how would i fit this specific one in? i removed the actual links and everything by the way.

    <h2>clickable link business name (reference to what they do)</h2>

    Plugin Author twinpictures

    (@twinpictures)

    in your example, what happens when you click the link?
    it will expand the content, but also navigate away from the page, correct?

    Regardless, you would do it like:

    [expand tag="h2" title="My H2 Title <a href='https://url.com'>link text</a>"]paragraph text[/expand]
    

    Notice the use of double quotes (") for the title attribute and single quotes (') for the enclosed a href attribute.

    Thread Starter dakotadearborn

    (@dakotadearborn)

    Valid point… any way to alight the arrow to the right or left side of my H2 and just have the arrow clickable?

    Plugin Author twinpictures

    (@twinpictures)

    if you want only the arrow to be clickable, then you would need to use the roll-your-own method described above, but making only the an arrow element the trigger.
    Since H2 elements are block elements, they will take up their own line, meaning you can not normally place anything before or after the element.

    Try this:

    <h2><span style="float: right" class="collapseomatic" id="my_id"> </span>H2 Headline Text</h2>
    <div id="target-my_id" class="collapseomatic_content">target content</div>
    
    Plugin Author twinpictures

    (@twinpictures)

    Did that work out for you?

    Thread Starter dakotadearborn

    (@dakotadearborn)

    I ended up changing my thing to display <p> instead of <h2>. but yes, it did work. Thank you!

    Plugin Author twinpictures

    (@twinpictures)

    excellent. we’ll mark the issue as resolved.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘H tags link help’ is closed to new replies.