Support » Plugin: jQuery Archive List Widget » Expands and collapses on click

  • Resolved Joe Lowery


    I love this plug-in – but I can’t get it to work properly. I get the years to display, but clicking on an individual year doesn’t expand to display the months as it should. Instead, I have to click again and then it expands and immediately collapses.

    You can see this behavior at in the sidebar under Archives. Click “Dates” to expand the years.

    I’m using a jQuery routine to expand Tags and Categories:

    $('.childrn > li a').click(function(e) {

    Note that I use the class ‘childrn’ not ‘children’ so as not to conflict with jQuery Archive List, but it’s still not working.

    Any help you can offer?

    Thanks so much for your work and help. I’ve made a small donation via PayPal whether you can give me a hand or not. Keep it up!

    Best – Joe

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Miguel Useche


    Wow thanks for the donation 🙂 it helps me to dedicate time to this plugin. I really appreciate it.

    About your problem, you’re asigning multiple click function to years because .children > li a will search for hyperlinks after inmediatly li under children, and that includes hyperlinks under my plugins.

    Just delete that function and use this one:

    jQuery('.childrn > li > a').on('click', function(e) {

    This selector will search only for the hyperlinks under the link under children, it doesn’t go deeper. Also i’ve used on function used in newer jQuery versions, and added a preventDefault to avoid going to any url.

    I suggest you to remove any href=”javascriot:void()” because it looks bad and it’s bad for SEO/robots. Add a href=”#date” and will work with the js code included in this message.

    That’s perfect, Miguel. Thanks so much!

    Best – Joe

    Plugin Author Miguel Useche


    Thanks to you for the donation, it made my day 🙂

    You’re entirely welcome! Your quick, accurate response really made mine, so I consider us even 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Expands and collapses on click’ is closed to new replies.