Could we have an option not display the quick tab block title ?

Comments

Flying Drupalist’s picture

Status: Active » Fixed

Do it in your block interface.

spiffyd’s picture

Status: Fixed » Active

Yes the option in the interface allows the title to be hidden, however, I noticed that it doesn't hide it via CSS by setting the title's H2 to display:none;

As a result, on some themes, the H2 region is still shown. I had to manually insert block-specific CSS to hide the H2 title region of that block to accomplish this.

Suggestions?

pasqualle’s picture

Title: ability to hide quick tab block title » QT block title is not hidden properly
Component: User interface » Code
Category: feature » bug
Status: Active » Postponed (maintainer needs more info)

Then it should be a problem with Drupal core or your theme.
Does it happen only with quicktab blocks?

spiffyd’s picture

Not sure how to test if this issue is exclusive to QT blocks.

However as mentioned in my blog post below, a simple display:none to the h2 property should do the trick.

http://spiffyd.com/blog/theming-quick-tabs-drupal

pasqualle’s picture

QT block is a simple block. It uses the core block.tpl.php file, and as I see from it

<?php if ($block->subject): ?>
  <h2><?php print $block->subject ?></h2>
<?php endif;?>

the h2 property should not be displayed when there is no subject.

Not sure how to test if this issue is exclusive to QT blocks.

Just simply hide the title (on the blocks admin interface) of any other (non QT) block used on your site, and check if it displays the h2 property. If it displays also then it is not a QT issue..

spiffyd’s picture

Aha! Turns out my theme didn't have the if-endif statements in the block.tpl.php. Adding it should do the trick!

pasqualle’s picture

Status: Postponed (maintainer needs more info) » Fixed

I am glad that helped, and it isn't a bug in the module ;)

Status: Fixed » Closed (fixed)

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

drupalusering’s picture

Problem with using block interface to manage quicktab titles, particularly hiding them is that if you have 50 or so quicktabs and none of them display a title in the list it is really hard to navigate in administration of QT's. Therefore it would be great if quicktabs module added a class to all h2 block titles. Say h2 class = quicktab_tit
...

pasqualle’s picture

Category: bug » support
Status: Closed (fixed) » Active

@drupalusering: create a block-quicktabs.tpl.php file in your theme directory and add any class you want..

drupalusering’s picture

@Pasqualle :) dont know how i missed block template, thanks that works for me

pasqualle’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

rot3r1’s picture

just go to block manager and set the title of your quick tab to "" ...very simple!!!