WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Categories List Widget
[resolved] Feature Request: be open to the category archive i'm on (4 posts)

  1. Jason Lemahieu (MadtownLems)
    Member
    Posted 3 years ago #

    This is a cool idea for a widget - thanks.

    My only gripe is that after drilling down into some categories and their children, and clicking on a category - I wish that the widget would already be expanded as much as needed be so the current category would be displayed (and probably indicated as the current category).

    Additionally, it would be nice if when viewing a post that's in category foo, this widget would be expanded far enough to see category foo as well.

    Does that make sense? Thoughts?

    http://wordpress.org/extend/plugins/jquery-categories-list/

  2. Miguel Useche
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, i know. I tried to do it but it was difficult, maybe in the next release i'll be able to implement it.

  3. paulyss10
    Member
    Posted 3 years ago #

    En IE no funciona. Cuando hago clic para que se expanda, no sucede nada.
    En Chrome y Firefox funciona perfecto.

  4. johnji
    Member
    Posted 3 years ago #

    I would also really like to see the current category / post enabled for this plugin, together with custom classes per category & post.

    This may not be the most elegant way of doing it, but the following tweak enables each list item to have a unique class:

    Line 142 in jquery-catagories-list.php

    Change

    $html .= '<li class="jcl_category"';

    to

    $html .= '<li class="'.$category->cat_name.' jcl_category"';

    Likewise to add classes to parent category <ul> tags:

    Line 155 in jquery-catagories-list.php

    Change

    $html .= '<ul>'.$child_html.'</ul>';

    to

    $html .= '<ul class="'.$category->cat_name.'">'.$child_html.'</ul>';

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic