Support » Plugins and Hacks » Hacks » adjusting default accordion to closed

  • dragonBoy2

    (@dragonboy2)


    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 ) {
        extract(shortcode_atts(array(
    		'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.