• Resolved be88

    (@be88)


    I just want to change the title part of the expandable content to a h3, I tried to do this in the text editor but then my collapsed content didn’t work properly

    The page I need help with: [log in to see the link]

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

    (@twinpictures)

    what did you try?
    How about this:

    [expand title="trigger text" tag="h3"]...[/expand]
    
    Thread Starter be88

    (@be88)

    That worked thank you, is there a way to change the line spacing? the gaps between each drop down are quite large now

    Plugin Author twinpictures

    (@twinpictures)

    The space, or line-height can be adjusted using CSS. Currently the CSS for H3 elements are defined as follows:

    html body#top h3 {
        font-size: 1.8rem;
        font-weight: 600;
        line-height: 2.2rem;
        letter-spacing: .5px;
    }
    

    A custom trigger class can be assigned using the trigclass attribute as detailed in the documentation.

    Also, space is bing added due to the <br> tag between each expand element.

    Thread Starter be88

    (@be88)

    Hi, I don’t want to alter the line height site wide for the h3 though, it’s just on the expand collapse section where it needs to be reduced. How do I remove the <br> tag? I’ve switched to html view and there’s no br tags anywhere?

    Plugin Author twinpictures

    (@twinpictures)

    Hi, I don’t want to alter the line height site wide for the h3 though, it’s just on the expand collapse section where it needs to be reduced.

    A custom trigger class can be assigned using the trigclass attribute as detailed in the documentation.

    How do I remove the <br> tag? I’ve switched to html view and there’s no br tags anywhere?

    1. View the shortcodes in Text (not Visual Mode)
    2. Do not include hard line breaks between expand shortcodes:
    Good:
    [expand]...[/expand][expand]...[/expand]
    Can cause br elements:

    [expand]...[/expand]
    [expand]...[/expand]
    Thread Starter be88

    (@be88)

    Thanks that fixed it

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change the title to h3’ is closed to new replies.