• Resolved memralife

    (@memralife)


    Hi,

    Firstly, great plugin – love it.

    I am using it to expand a series of tables relating to attendance at three different groups at three different events. For the moment it is available at https://stagingforms.memralifegroup.org/springharvest/count. The page code is below.

    The highlander works fine, opening and closing sections as I want. However, I have put a swaptitle on that just puts a <b></b> tag round the title when selected. If I do not close the expandsub and then the expand but click directly on one of the other “top level” sections, the swaptitles get out of sync.

    I am sure I have done something silly – and it probably is a little complex with the expandsub sections as I tried to work out what is going on.

    Any suggestions?

    
    <p>Please click on the links below to expand and hide the sections.<br/>
    </p>
    [expand title="Minehead One (4 - 8 April)" swaptitle="<b>Minehead One (4 - 8 April)</b>" trigclass="noarrow" rel="SiteWeek-highlander"]
    [expandsub1 title="Under 5s (MH1)" swaptitle="<b>Under 5s (MH1)</b>" trigclass="noarrow" rel="MineheadOne-highlander" findme="auto" id="MineheadOneUnder5s"]
    [table id=1 /]
    [/expandsub1]
    <br/>
    [expandsub2 title="5-7s (MH1)" swaptitle="<b>5-7s (MH1)</b>" trigclass="noarrow" rel="MineheadOne-highlander" findme="auto" id="MineheadOne57s"]
    [table id=4 /]
    [/expandsub2]
    <br/>
    [expandsub3 title="8-11s (MH1)" swaptitle="<b>8-11s (MH1)</b>" trigclass="noarrow" rel="MineheadOne-highlander" findme="auto" id="MineheadOne811s"]
    [table id=7 /]
    [/expandsub3]
    <br/>
    [/expand]
    <br/>
    [expand title="Minehead Two (8 - 13 April)" swaptitle="<b>Minehead Two (8 - 13 April)</b>" trigclass="noarrow" rel="SiteWeek-highlander"]
    [expandsub4 title="Under 5s (MH2)" swaptitle="<b>Under 5s (MH2)</b>" trigclass="noarrow" rel="MineheadTwo-highlander" findme="auto" id="MineheadTwoUnder5s"]
    [table id=2 /]
    [/expandsub4]
    <br/>
    [expandsub5 title="5-7s (MH2)" swaptitle="<b>5-7s (MH2)</b>" trigclass="noarrow" rel="MineheadTwo-highlander" findme="auto" id="MineheadTwo57s"]
    [table id=5 /]
    [/expandsub5]
    <br/>
    [expandsub6 title="8-11s (MH2)" swaptitle="<b>8-11s (MH2)</b>" trigclass="noarrow" rel="MineheadTwo-highlander" findme="auto" id="MineheadTwo811s"]
    [table id=8 /]
    [/expandsub6]
    <br/>
    [/expand]
    <br/>
    [expand title="Skegness (10 - 14 April)" swaptitle="<b>Skegness (10 - 14 April)</b>" trigclass="noarrow" rel="SiteWeek-highlander"]
    [expandsub7 title="Under 5s (SK1)" swaptitle="<b>Under 5s (SK1)</b>" trigclass="noarrow" rel="Skegness-highlander" findme="auto" id="SkegnessUnder5s"]
    [table id=3 /]
    [/expandsub7]
    <br/>
    [expandsub8 title="5-7s (SK1)" swaptitle="<b>5-7s (SK1)</b>" trigclass="noarrow" rel="Skegness-highlander" findme="auto" id="Skegness57s"]
    [table id=6 /]
    [/expandsub8]
    <br/>
    [expandsub9 title="8-11s (SK1)" swaptitle="<b>8-11s (SK1)</b>" trigclass="noarrow" rel="Skegness-highlander" findme="auto" id="SkegnessUnder811s"]
    [table id=9 /]
    [/expandsub9]
    <br/>
    [/expand]
    <br/>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Hello and happy to help.
    If all you want to do is make the active (expanded) title bold, it’s easier (and smarter) to not use swap titles for this, but rather just good ol’ CSS.

    For example:

    add the following css to either your theme’s Custom CSS section, or to the Collapse-O-Matic custom CSS section (under Dashboard > Settings > Collapse-O-Matic > Custom Css:

    .colomat-close {
       font-weight: bold;
    }
    

    then remove all of your swaptitle attributes.
    See if that helps.

    Thread Starter memralife

    (@memralife)

    Wonderful – knew I would be missing something.

    Plugin Author twinpictures

    (@twinpictures)

    glad it worked out! please consider leaving a little review!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Expandsub, highlander and swaptitle issue’ is closed to new replies.