Title: Expanded filter by default
Last modified: August 20, 2016

---

# Expanded filter by default

 *  Resolved [kentonfox](https://wordpress.org/support/users/kentonfox/)
 * (@kentonfox)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/expanded-filter-by-default/)
 * Love this theme, it is perfect for my needs, just want to make a couple of really
   simple tweaks … I hope you can help?
 * 1. Would love to find the section of the code to make the Homepage Filter expanded
   by default.
 * 2. How difficult would it be to add a sidebar to the homepage. Is this something
   you might add to a premium edition?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/expanded-filter-by-default/#post-3160009)
 * +1
 *  [hjmt](https://wordpress.org/support/users/hjmt/)
 * (@hjmt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/expanded-filter-by-default/#post-3160016)
 * I did a quick hack by changing the css –
 * #primary-nav .sixteen {
    height:34px;
 * You can see how its fully expaneded on my site [http://minecraftmaps.org](http://minecraftmaps.org)
   when loading but to close it you have to press the filter button twice. Good 
   Luck
 *  [Sampression](https://wordpress.org/support/users/sampression/)
 * (@sampression)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/expanded-filter-by-default/#post-3160022)
 * Hi kentonfox,
 * #1 Go to the script.js file on wp-content/themes/sampression-lite/lib/js/
 * and change this code
 *     ```
       if( minHt < ulHt ) {
         jQuery('#btn-nav-opt').show();
       }
       ```
   
 * with:
 *     ```
       if( minHt < ulHt ) {
       		jQuery('#primary-nav .sixteen').animate({ 'height' : ulHt },1000,function(){
       			jQuery('#btn-nav-opt').show();
       			jQuery('#btn-nav-opt').addClass('up');
       		});
       	}
       ```
   
 * also change the code
 *     ```
       jQuery('#btn-nav-opt').toggle(
       	function(){
       		jQuery('#primary-nav .sixteen').animate({ 'height' : ulHt });
       		jQuery(this).addClass('up');
       	},
       function(){
       	jQuery('#primary-nav .sixteen').animate({ 'height' : minHt } );
       	jQuery(this).removeClass('up');
       	}
       );
       ```
   
 * with:
 *     ```
       jQuery('#btn-nav-opt').on( 'click', function(){
       		if(jQuery(this).hasClass('up')){
       			jQuery('#primary-nav .sixteen').animate({ 'height' : minHt });
       			jQuery(this).removeClass('up');
       		}else{
       			jQuery('#primary-nav .sixteen').animate({ 'height' : ulHt } );
       			jQuery(this).addClass('up');
       		}
       		});
       ```
   
 * #2 We will definitely think about that on Sampression Pro.
 * Thanks,
 * Sampression Team
 *  [sparkleflavor](https://wordpress.org/support/users/sparkleflavor/)
 * (@sparkleflavor)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/expanded-filter-by-default/#post-3160037)
 * Greetings,
 * Thanks so much for this awesome theme!
 * I would also like to implement a static category menu (disble the filter) on 
   the homepage, however I think the code may have changed from whats above.
 * If you have a chance to update this thread, I’d be most grateful.
 * Again, thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Expanded filter by default’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sampression-lite/2.3/screenshot.
   png)
 * Sampression Lite
 * [Support Threads](https://wordpress.org/support/theme/sampression-lite/)
 * [Active Topics](https://wordpress.org/support/theme/sampression-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sampression-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sampression-lite/reviews/)

## Tags

 * [sampression](https://wordpress.org/support/topic-tag/sampression/)

 * 4 replies
 * 5 participants
 * Last reply from: [sparkleflavor](https://wordpress.org/support/users/sparkleflavor/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/expanded-filter-by-default/#post-3160037)
 * Status: resolved