WordPress.org

Ready to get started?Download WordPress

Forums

Collapsing Categories
Expand sub category list without click on the archive (2 posts)

  1. d_alinus2004
    Member
    Posted 2 years ago #

    Hello,

    It's posible to expand the subcategory list when i put the mouse on the archive category and not click?

    it'a any option ?
    Please help me with this.

    Many regards.

    http://wordpress.org/extend/plugins/collapsing-categories/

  2. manfer
    Member
    Posted 2 years ago #

    The plugin doesn't have that option. If you want that option you will have to hack the plugin yourself by editing the file collapsFunctions.js

    In that file the function addExpandCollapse have to be changed to:

    function addExpandCollapse(id, expandSym, collapseSym, accordion) {
      jQuery('#' + id).on('mouseover', '.expand', function() {
        if (accordion==1) {
          var theDiv = jQuery(this).parent().parent().find('span.collapse').parent().find('div');
          jQuery(theDiv).hide('normal');
          jQuery(this).parent().parent().find('span.collapse').removeClass('collapse').addClass('expand');
          createCookie(theDiv.attr('id'), 0, 7);
        }
        jQuery('#' + id + ' .expand .sym').html(expandSym);
        expandCat(this, expandSym, collapseSym);
        return false;
      });
      jQuery('#' + id).on('click', '.collapse', function() {
        collapseCat(this, expandSym, collapseSym);
        return false;
      });
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic