Title: JS Toggle Boxes plugin
Last modified: August 18, 2016

---

# JS Toggle Boxes plugin

 *  [mattbramanti](https://wordpress.org/support/users/mattbramanti/)
 * (@mattbramanti)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/js-toggle-boxes-plugin/)
 * I’m using the JS Toggle Boxes plugin, which allows the user to expand/collapse
   page elements using Javascript.
 * I got the script working on simple lists, like categories and archives, but I’m
   having trouble getting it to work with elements generated by plugins. I use the“
   Now Watching,” “Now Reading,” and “WeatherIcon” plugins, and I just can’t find
   the right place in the code to place the javascript.
 * Any suggestions?
 * [This](http://www.mattsapundit.com) is the page where you can see what I’ve done.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [monkeypup](https://wordpress.org/support/users/monkeypup/)
 * (@monkeypup)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/js-toggle-boxes-plugin/#post-350815)
 * Looks like it’s working to me. Looks keen.
 *  [red-star](https://wordpress.org/support/users/red-star/)
 * (@red-star)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/js-toggle-boxes-plugin/#post-350817)
 * Yeah works like a togglebox
 *  Thread Starter [mattbramanti](https://wordpress.org/support/users/mattbramanti/)
 * (@mattbramanti)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/js-toggle-boxes-plugin/#post-350834)
 * Uh, guys, look again. It’s not applied to the “Now Watching” and “Now Reading”
   sections, and I can’t find where to put the code. Any suggestions?
 *  [Griff](https://wordpress.org/support/users/griffinjay/)
 * (@griffinjay)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/js-toggle-boxes-plugin/#post-351070)
 * I’m struggling to get this to work with the default Kubrik theme, just trying
   it with Categories, as described at
    [http://aranea.zuavra.net/index.php/19/](http://aranea.zuavra.net/index.php/19/)
 * I have this in the header.php theme file, between the `<head></head>` tags.
 * `<?php if (function_exists('JSTB_box_js')) JSTB_box_js(); ?>`
 * I have this in the sidebar.php theme file:
 * `
    <li><h2>Categories <?=function_exists('JSTB_box_toggle')? JSTB_box_toggle('[
   +/-]', 'toggle', 'Click to toggle', 'cookie_category', 'category_list') :''?>
   </h2> <ul id="category_list" class="JSTB_shown"> </ul> <?=function_exists('JSTB_box_init')?
   JSTB_box_init('cookie_category', 'JSTB_shown', 'category_list') :''?> </li>
 * Am I supposed to have anthing where the
    …
 * goes?
 * In the default Kubrick theme, there’s this:
 * `<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>`
 * but if I include that, I just get the normal category list.
 * I’m not much of a techie… any help appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘JS Toggle Boxes plugin’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 4 replies
 * 4 participants
 * Last reply from: [Griff](https://wordpress.org/support/users/griffinjay/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/js-toggle-boxes-plugin/#post-351070)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
