How to Hide a Group Heading

john47

New Member
You can add a div to template.php for the h3 heading and then hide it as you would any other element on the page.

Find in com_fabrik/views/form/tmpl/bluesky/template.php the following line of code
Code:
<h3><?php echo $group->title;?></h3>
and replace it with
Code:
<!-- <h3><?php echo $group->title;?></h3> --><div id="group<?php echo $group->id;?>_h3"><h3><?php echo $group->title;?></h3></div>

This new code comments out the old code and gives a new div id of group2_h3, group3_h3, or whatever the group is.

As a precaution, it is worth saving template.php as template_original.php and then adding the code to a copy of template.php in case things go awry!

John
 
Need to work in the CSS file?

I didn't get the ending. Is there something to do in the CSS template file afterwards so that one of the group title would disappear?

Could you tell me what this code would be?

Thank you!
 
Got it!

I found it out by myself. Here:

#group20_h3{
display:none;
}

This code has to be added in the css file of the template if you want the group20 title not to be displayed.
 
Thanks for the feedback.

Just remember to work on cloned templates, not the out-of-box ones, otherwise any changes you make will get blown away next time you upgrade.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top