Last active
July 17, 2016 13:19
-
-
Save joemeador/8907610 to your computer and use it in GitHub Desktop.
jQuery function to toggle Magento layered navigation attributes. Change .slice(1) to how many lists you want displayed by default.
`<script>
var $j= jQuery.noConflict();// no conflict method
$j (document).ready(function(){
$j("#narrow-by-list > dt").click(function(){
if(false == $j(this).next().is(':visible')) {
$j('#narrow-by-list dd').slideUp(300);
}
$j(this).next().slideToggle(300);
});
$j('#narrow-by-list dd').hide();
$j('#narrow-by-list dd:eq(0)').show();
});
</script>`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for me is not working. Magento 1.9.2.3 + Extension SEO layered navigation
It works with: