• Resolved n8steve

    (@n8steve)


    I have started trying to use C-o-M for the first time today. I have read the documentation and looked through the first few pages of the forum…
    When I shift our site to the Twenty Fifteen theme, I want to use C-o-M to expand/collapse sections of a newsletter post. I am used to using heading styles h3, h4 etc. and want to use them to style the section headings, but am not getting the results I want. It is probably something really basic you have dealt with dozens of times but….help please!
    Code is:

    [expand title="heading1"]
    <h4>CAFOD Nepal Earthquake Appeal</h4>
    CAFOD has launched a £3m emergency appeal following the earthquake in Nepal. ……[/expand]
    
    [expand title="heading2" startwrap="<h3>" endwrap="%(%/h3%)%"]
    <h4>The Annual Migrants’ Mass</h4>
    This year's Mass will be held at St George’s Cathedral, Southwark on May 4th at 11am…..[/expand]
    
    [expand title="heading3" startwrap="<b>" endwrap="%(%/b3%)%"]
    <h4>Anothjer item</h4>
    Some more text.[/expand]

    My sandpit is http://spic.org.uk/wp/

    https://wordpress.org/plugins/jquery-collapse-o-matic/

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

    (@baden03)

    use the tag attribute:
    [expand title="heading2" tag="h3"]
    [expand title="heading3" tag="b"]

    Thread Starter n8steve

    (@n8steve)

    Dear Baden, so much for me thinking I had read the documentation – obviously not well enough! Many thanks. Of course that worked. I now have another niggle but will do some more hunting in the forum before I post again. Steve

    n8steve:

    Any chance you would share your code? I’m trying to create exactly what you are doing but can’t seem to get paragraph breaks to “take” in my target content. Can’t figure out what I’m doing wrong but my goal is to have it look like your sandpit page….

    I thought perhaps you might share how you did that.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Collapse-o-matic problem using heading styles’ is closed to new replies.