• Resolved antonv

    (@antonv)


    I wish to format the excerpt. The expand shortcode includes excerpt='<div id="xyz">...some text...</div>'

    Collapse-o-Matic produces following code

    <div id="excerpt-id6317c5403dc82" class="">
      <p></p>
         <div id="xyz">...some text...</div>
      <p></p>
    </div>

    The two <p></p> lines are introduced for some unknown reason, and destroys intended page layout.

    Contrast this to expand shortcode includes excerpt='...some text...' which is coded as

    <div id="excerpt-id6317c5403dc82" class="">
         <div id="xyz">...some text...</div>
    </div>

    without the two <p></p> lines.

    Could you please suggest a fix for this. Below how i use it

    [expand title="Read more" swaptitle="Read Less" trigpos="below" excerpt='<div id="xyz">...some text...</div>' swapexcerpt="" excerptpos="above-trigger"]<div id="xyz">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>[/expand]

    • This topic was modified 2 years, 5 months ago by antonv.
    • This topic was modified 2 years, 5 months ago by antonv.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘formatting excerpt introduces extra lines’ is closed to new replies.