Ajax support in SWE Accordion Widgets

In Standard Widget Extensions 1.7, Ajax support gets improved. Accordion Widgets continue to work after Ajax update of sidebars. But you may need following customization for better widget behavior. 1. Set the class for heading elements After Ajax update, heading elements lose classes added by the plugin. So you may need to set the class in your theme. Following is modification for Twenty Fourteen as an example, setting hm-swe-expanded class for headings. in functions.php register_sidebar( array( ‘name’ => __( ‘Content Sidebar’, ‘twentyfourteen’ ), ‘id’ => ‘sidebar-2’, ‘description’ => __( ‘Additional sidebar that appears on the right.’, ‘twentyfourteen’ ), ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ”, ‘after_title’ => ”, … Continue reading Ajax support in SWE Accordion Widgets