[resolved] Hide Excerpt on Expand (6 posts)

  1. MORRG
    Posted 2 years ago #


    Is it possible to hide the excerpt when the target content is active and show it again when it is collapsed?

    Thanks in advance,



  2. Baden
    Plugin Author

    Posted 2 years ago #

    Yes. Please update to version 1.5.2c available from our Plugin Oven. 1.5.2c includes a new attribue: swapexcerpt

    It can be also used to remove the excerpt like so:

    [expand title="trigger text" excerpt="the excerpt" swapexcerpt=""]Target Content[/expand]

    Please let us know if that works for you!

  3. Twansparant
    Posted 2 years ago #

    Hi there,

    This isn't working for me unfortunately.
    I'm using the 1.5.2c version and would like to achieve the following situation:

    [Post Excerpt]
    [Read More]

    after click:

    [Post Content]
    [Read Less]

    But instead I get this:

    [Post Excerpt]
    [Read More][Post Content]

    and after click nothing happens...

    This is my function which calls the shortcode in my functions.php:

    echo do_shortcode('[expand title="'.__('Read More','textdomain').'" swaptitle="'.__('Read Less','textdomain').'" excerpt="'.get_the_excerpt($post->ID).'" swapexcerpt="" excerptpos="above-trigger" trigclass="more-tag button small left"]'.get_the_content($post->ID).'[/expand]');

    Any idea what I'm doing wrong?

  4. Baden
    Plugin Author

    Posted 2 years ago #

    Please post a link to your page to assist in troubleshooting.

  5. Twansparant
    Posted 2 years ago #

    Turned out to be a one-page theme issue...
    I switched to using a custom made jquery function to avoid conflicts with other scripts.

  6. Baden
    Plugin Author

    Posted 2 years ago #

    Glad you got it sussed out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Collapse-O-Matic
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic