WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
[resolved] Hide Excerpt on Expand (6 posts)

  1. MORRG
    Member
    Posted 1 year ago #

    Hi,

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

    Thanks in advance,

    Matt

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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?
    Thanks!

  4. Baden
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. Twansparant
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you got it sussed out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic