• 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 is the page where you can see what I’ve done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like it’s working to me. Looks keen.

    Yeah works like a togglebox

    Thread Starter mattbramanti

    (@mattbramanti)

    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?

    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/

    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.