• Resolved kentonfox

    (@kentonfox)


    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)
  • +1

    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 when loading but to close it you have to press the filter button twice. Good Luck

    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

    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.