Kommentarer till WP ShowHide Elements https://www.jenst.se/2008/01/31/wp-showhide-elements/ En WordPressblogg till Wed, 13 Mar 2013 09:20:15 +0000 hourly 1 Av: WP ShowHide Elements | Best Plugins - wordpress – widgets – plugin 2012 https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-178446 Wed, 13 Mar 2013 09:20:15 +0000 http://www.jenst.se/?p=184#comment-178446 […] Live demo example […]

]]>
Av: Dominor Novus https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-31902 Sat, 19 Nov 2011 14:27:52 +0000 http://www.jenst.se/?p=184#comment-31902 I found an alternative that provides a working demo: http://www.farinspace.com/wordpress-peekaboo-plugin/

]]>
Av: Dominor Novus https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-31848 Fri, 18 Nov 2011 22:51:24 +0000 http://www.jenst.se/?p=184#comment-31848 Where’s the demo?

]]>
Av: Dennison Uy https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-27064 Fri, 02 Sep 2011 11:10:10 +0000 http://www.jenst.se/?p=184#comment-27064 I arrived here because I clicked on the demo link on the WordPress plugin website. I don’t see any demo though?

]]>
Av: curdaneta https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-26714 Fri, 26 Aug 2011 00:24:28 +0000 http://www.jenst.se/?p=184#comment-26714 Hello
It’s possible to show/hide multiple elements?
Regards
curdaneta

]]>
Av: Stan https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-26355 Wed, 17 Aug 2011 05:21:21 +0000 http://www.jenst.se/?p=184#comment-26355 Did I miss something? Seems I’m missing/wanting the same as many others. First of all. Thank you. The WP ShowHide Elements plug in is exactly what I was looking for. eassily installed and it (more or less) does just what it is supposed to do ..BUT when the page first loads, the default is to ”show” with clicking the link to ”hide”. I’d prefer the reverse (default to ”hide” click the link to ”show”.) .

I tried changing the ”block” or ”none” in various other combinations in the ”wp-showhide-elements.js” but couldnt get it to work as I wanted.

]]>
Av: Ryan B https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-11837 Tue, 09 Nov 2010 22:17:19 +0000 http://www.jenst.se/?p=184#comment-11837 Thanks for the great plugin!

I was having the same problem getting the hidden box to start closed, and was a little confused by some of the replies. I am sure there is a better solutions than this, and one possibly one that could be incorporated into the plugin itself, but all you have to do is on the hidden content section put style=”display:none;” this way the content starts hidden, and when the button is clicked it checks what the current status is and reverses it.

ryan

]]>
Av: Parrothead https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-9912 Fri, 17 Sep 2010 20:22:49 +0000 http://www.jenst.se/?p=184#comment-9912 Code got mangled:

Here’s the function again

function Showhide($atts, $content = null){
extract( shortcode_atts( array(
‘title’ => ‘Add Title’,
), $atts ) );
$nice_title = str_replace(‘ ‘,”,$title);

$rand = rand(0,20);

$accordion = ‘<h5 class=”question”><a onclick=”wp_showhide(\”.$nice_title.$rand.’\’)” href=”javascript:void(0);”>’.$title.'</a></h5>’;
$accordion .= ‘<div id=”‘.$nice_title.$rand.'” class=”answer” style=”display: none”>’. do_shortcode($content) .'</div>’;

return $accordion;
}

]]>
Av: Parrothead https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-9911 Fri, 17 Sep 2010 20:16:50 +0000 http://www.jenst.se/?p=184#comment-9911 I’ve been including this plugin in my themes for a while and came up with a shortcode to make it easier for my clients.

Open source contribution.

Add this to functions.php:

function Showhide($atts, $content = null){
extract( shortcode_atts( array(
‘title’ => ‘Add Title’,
), $atts ) );
$nice_title = str_replace(‘ ‘,”,$title);
$rand = rand(0,20);
$accordion = ‘‘.$title.’‘;
$accordion .= ”. do_shortcode($content) .”;
return $accordion;
}

add_shortcode(‘Showhide’,’Showhide’);

Here’s usage for the shortcode:
[Showhide title=’A really good Question?’]
With a really good answer.
[/Showhide]

Enjoy!

]]>
Av: Broadcast 1 – Spirit and Dance « Classical Guy https://www.jenst.se/2008/01/31/wp-showhide-elements/comment-page-1/#comment-9415 Tue, 07 Sep 2010 03:56:16 +0000 http://www.jenst.se/?p=184#comment-9415 […] Live demo example September 6th, 2010 | Tags: Antonio, Bach, Franz Joseph, George Frideric, Handel, Haydn, Johann Sebastian, Tallis, Thomas, Vivaldi | Category: Baroque, Classical Period, Podcasts […]

]]>