Support » Plugin: Collapse-O-Matic » [Plugin: jQuery Collapse-O-Matic] Blank paragraphs

  • Hi

    Really great plugin thanks!

    I have one request: if the [expand] shortcode is wrapped around a multi-paragraph block like this…

    [expand title="hello"]
    Some stuff.
    More stuff

    … then you get a blank paragraph inserted at the beginning and end of the content.

    I have solved it by adding this code at line 77:

    if ( '</p>' == substr( $content, 0, 4 ) and '<p>' == substr( $content, strlen( $content ) - 3 ) ) {
        $content = substr( $content, 4, strlen( $content ) - 7 );

    If there’s any chance of incorporating this (or a better solution of course!) into future releases I’d be very happy.


  • The topic ‘[Plugin: jQuery Collapse-O-Matic] Blank paragraphs’ is closed to new replies.