Hide Excerpt on Expand
-
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/
-
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!
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!Please post a link to your page to assist in troubleshooting.
Turned out to be a one-page theme issue…
I switched to using a custom made jquery function to avoid conflicts with other scripts.Glad you got it sussed out.
The topic ‘Hide Excerpt on Expand’ is closed to new replies.