Tuesday 2 July 2013

Wordpress JQuery Sliding Out Widget Space

To do this I've used the plugin Jquery Slick Menu Widget . This slides out a menu but with a quick hack you can easily change it to pull out a Widget Space instead. Re. Add Widget space to wordpress Theme . Here's what I did . Open this page in your editor from the plugin. wp-content/plugins/jquery-slick-menu/dcwp_jquery_slick_menu_widget.php FIND
wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu, 'container' => false ) );
REPLACE WITH
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Slide Sidebar') ) : endif;   
OPEN the functions.php of your theme FIND
if ( function_exists('register_sidebars') )
ADD UNDERNEATH
 register_sidebar(array(
  'name'=> __( "Slide Sidebar", 'littleripples' ),
  'id' => 'slide-sidebar',
  'before_title'=>'
', 'after_title'=>'
' ));
SAVE AND UPLOAD. Thats it !!!!!

No comments: