Category Widget – Any advice how to make it colapsable ?

  • Vasile Vlad
    Vasile Vlad
    Newbie 38 points
    March 22, 2015 at 9:34 pm

    Hi everyone,

    I added the category widget on categories page listing, but because i have to many subcategories it takes a lot of space.

    I want to transform this widget and make categories colapsable.
    This means that on page loading to load only category colapsed and when a user clicks a category this should expand.
    When it clicks another category to close the category expanded previously and expand the new one was clicked.

    Please see how is showing that section now .
    https://cityguide.aromesigusturi.ro/locuri/city-food/

    Any advice is welcome

  • Christopher Lee
    Christopher Lee
    Senior Member 348 points
    March 22, 2015 at 11:36 pm

    Have a look here – https://getbootstrap.com/javascript/#collapse
    If you’re familiar with firebug, you should be able to use the categories widget to copy all the links to each category, and paste them into the accordion html.

Viewing 2 posts - 1 through 2 (of 2 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes