Support » Plugins » Hacks » adjusting default accordion to closed

  • I am building a peekaboo website and I am trying to set the default accordion to closed. Is this possible? Thank You.
    the accordion code is:

    add_shortcode('acc', 'pkb_accordion');
    function pkb_accordion( $atts, $content = null ) {
    		'title'    	 => 'Title here'
        ), $atts));
    	$out .= "<h4 class=\"acc_toggler\"><span>&nbsp;</span><a href=\"#\">".$title."</a></h4>
    	<div class=\"acc_inner\"><div class=\"block\">".parse_shortcode_content( $content )."</div></div>";
        return $out;
  • The topic ‘adjusting default accordion to closed’ is closed to new replies.