I have a block which template I'm overriding with my own.
The title in it is displayed by the following code:
<h2<?php print $title_attributes;?>><?php print $title; ?></h2>
I just want to add some custom classes to the h2, but I can't figure out how to format it. I want to keep $title_attributes but I can't seem to be able to add my own classes if I do.
I tried:
<h2 class="a-class" <?php print $title_attributes;?>><?php print $title; ?></h2>
and:
<h2<?php print $title_attributes .'a-class';?>><?php print $title; ?></h2>
But neither did anything. My PHP is scrappy at best so it's probably just me who don't know how to write what I want. Can anyone help me?