Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey,
I am having a tough time getting this module working. I hope it is my lack of selector knowledge. I wanted to show you my block code to see if anyone could give me a hand. I have the blocks generated by Views, and I am using them in Panels
In essence I just need to know what selectors to use for block, header, and body:
<div id="block-views-land-block" class="block block-views panel panel-default clearfix <strong>collapsiblock-processed</strong>">
<div class="panel-heading">
Test Block
</div>
<div class="panel-body content">
<div class="view view-land view-id-land view-display-id-block view-dom-id-8d9584d1f26f4516be864e0039e6264d">
<div class="view-content">
<div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
<div class="views-field views-field-value">
<span class="field-content">Testing</span>
</div>
</div>
</div>
</div>
</div>
</div>
As you can see it has 'collapsiblock-processed' in the css classes. But I am not sure if it's in the correct spot.
Right now for my selectors I have:
Block: *.block
Title: :div.panel-heading
Block Content: :div.panel-body
But these settings do not work.
Comments
Comment #1
AgentJay CreditAttribution: AgentJay commentedI figured it out!
I did not realize but the settings for the selectors must be set per theme. I was changing the defaults in the global theme settings, but not the settings in my current theme.
No wonder nothing was working! It works now though.
I just need to re-style the block header since it has now turned into a link.
Thanks for the great module!
Comment #2
darvanen