Jump to content

Add "Show more button" in section


Recommended Posts

There is a loop for subcategories in category.tpl. If you add {break} it will interrupt when you want, or you can even use it to add a further div, like

{foreach from=$subcategories item=subcategory name='subcategories_loop'} <-- You need to add the name

<li {if $smarty.foreach.subcategories_loop.iteration >= 6}class="hidden"{/if}>


Then you can create a button that makes the .hidden LIs visible on click

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...