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

    (@baden03)

    what do your first two shortcodes look like?

    Thread Starter outtacontext

    (@outtacontext)

    They look like this:

    [expand title="Observation and Interpretation" tag="h2"]
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue ornare lacus, [/expand]
    [expand title="Focus On: Topics" tag="h2"]
    [expandsub1 title="Immigration" tag="h3"]
    [expand title="Observation and Interpretation" tag="h2"]
    Vestibulum ornare ante in nibh ullamcorper gravida. Aliquam rutrum arcu a metus pellentesque, auctor laoreet velit iaculis. [/expandsub1]
    [expandsub1 title="Religion" tag="h3"]
    Cras sollicitudin pellentesque pellentesque. In hac habitasse platea dictumst. Mauris eu varius nisl.
    [/expandsub1]
    [expandsub1 title="Moravian Community Life" tag="h3"]
    [/expandsub1]
    [expandsub1 title="Women’s Roles" tag="h3"]
    [/expandsub1]
    [expandsub1 title="Material Culture" tag="h3"]
    [/expandsub1]
    [expandsub1 title="Purpose of Portraiture" tag="h3"]
    [/expandsub1]
    [expandsub1 title="The American Revolution: Boston" tag="h3"]
    [/expandsub1]
    [expandsub1 title="The American Revolution: Bethlehem, PA" tag="h3"]
    [/expandsub1]
    [expandsub1 title="The Artist: John Singleton Copley" tag="h3"]
    [/expandsub1]
    [expandsub1 title="The Artist: Johann Valentine Haidt" tag="h3"]
    [/expandsub1]
    [/expand]
    
    [expand title="Discussion Questions" tag="h2"]
    [/expand]
    [expand title="Primary Sources" tag="h2"]
    Young Moravian Girl
    <ul>
    	<li>Writings/ memoirs of 4 Moravian women</li>
    	<li>Extracts from Moravian diary confirming Haidt as teacher</li>
    	<li>Lafayette’s letter to his wife describing Bethlehem</li>
    	<li>Various Moravian portraits by Haidt and prints of Bethlehem</li>
    </ul>
    
    Mrs. George Watson
    
    <ul>
    	<li>The death sermon of Mrs. Watson</li>
    	<li>Paul Revere’s print of the Bloody Massacre</li>
    	<li>John Singleton Copley's letter about George Watson</li>
    	<li>George Watson’s resignation letter to Gen. Gage</li>
    	<li>Henry Pelham’s letter on Tea Party incident</li>
    	<li>Letter by Richard Clarke about tea shipment (Boston Tea Party)</li>
    	<li>Letter from Abigail Adams to Elizabeth Cranch about daughter of Mrs. George Watson</li>
    	<li>Various portraits of family members by Copley</li>
    	<li>Contemporary transcript of the Boston Massacre Trials</li>
    </ul>
    [/expand]

    Plugin Author Baden

    (@baden03)

    This is a common and well documented issue with wpautop

    We came up with a quick solution simply by removing all the hard returns from your source as follows:

    Bad:

    [expand title="Observation and Interpretation" tag="h2"]
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue ornare lacus, [/expand]
    [expand title="Focus On: Topics" tag="h2"]
    [expandsub1 title="Immigration" tag="h3"]
    ...

    Better:

    [expand title="Observation and Interpretation" tag="h2"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue ornare lacus, [/expand][expand title="Focus On: Topics" tag="h2"][expandsub1 title="Immigration" tag="h3"]...

    See if that works for you.

    Thread Starter outtacontext

    (@outtacontext)

    Yes, that seems to be working. Thanks.

    May I make a few suggestions: first, if you can, please fix this problem. Bunching everything up like this makes it hard to “see” where one section ends and the next begins.

    But, in the meantime, please post this issue with nesting in your documentation. It would have been really helpful to know a) this is a known issue, and b) there is a band aid fix for it.

    I really appreciate your quite response. Thanks!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Spacing between Nested Sections is inconsistent’ is closed to new replies.