If you are using Bootstrap 7.x-3.x (Bootstrap 3 for Drupal), you will need to make a few quick changes to get this module working.

  1. Update your block.tpl.php file (preferably in a subtheme)
  2. Change the collapse block selectors in your theme settings (ie: /admin/appearance/settings/bootstrap).

Suggested selectors

Block = .block
Title = :header:first
Block Content= .content

Changes in block.tpl.php

Surround <?php print $content ?> with this div and class <div class="content"> .. </div>

The result should look something like this:

<section id="<?php print $block_html_id; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>

  <?php print render($title_prefix); ?>
  <?php if ($title): ?>
    <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
  <?php endif;?>
  <?php print render($title_suffix); ?>
    <div class="content">
  <?php print $content ?>
</div>
</section>

Comments

mach5_kel created an issue. See original summary.

wpwentzell’s picture

Thank you! Works perfectly.

girlbrg’s picture

I'm new to drupal. I follow these steps but the block still does not collapse.
I am using the Facet API Collapsible with Collapsiblock to make a side bar,that can be colapsible and the elements have checkbox.
I found no solution. I am using the bootstrap theme.

candelas’s picture

Same as @girlbrg with Bootstrap 7.x-3.14. No errors in console and a collapsed block doesn't open. Thanks for any tips! :)

darvanen’s picture

Component: Documentation » Code
Category: Support request » Bug report
Parent issue: » #1186198: Collapsiblock v2 for Drupal 7

See parent issue.

darvanen’s picture

Version: 7.x-1.1 » 7.x-2.0-alpha1
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.