Acquia Slate not-front block headers: help with a desired change?

Events happening in the community are now at Drupal community events on www.drupal.org.
dduane's picture

Hi, all!

I've been working with Acquia Slate for a little while now (I just finished mildly hacking it for a friend's website at http://www.siphiwe.com) and am looking to do so again for a site of my own (the site at YoungWizards.com is due for an updating and upgrade).

One change I'd like to implement involves the block headers. I've just installed the Signwriter module on my pre-production installation, and it works perfectly well with the node headers in Slate. But it breaks when it hits the block headers, as described here. As a result, I'd like to get rid of the whole business that splits the h2 tag so that Signwriter can't parse it correctly.

At first I thought perhaps I could manage this simply by manipulating the CSS, but on closer examination I see that the PHP in Slate's block.tpl.php file is involved, and since I'm a complete PHP novice, I have no idea what to do about it. (I experimented a little by commenting out the apparently involved lines in the file in several different ways, but the blocks continued failing as above, suggesting that I was either screwing something up, or the solution lies somewhere else.)

If anyone can suggest how I might get the block headers to behave like the node headers, I'd be grateful. :)

Thanks!

Best -- Diane

Comments

Did you try removing

jwolf's picture

Did you try removing lines 18 and 19 from block.tpl.php:

<?php $firstword = wordlimit($block->subject, 1, "");
$block->subject = str_replace($firstword, "<span class=\"first-word\">" . $firstword . "</span>", $block->subject); ?>

and then maybe remove:

text-transform: uppercase; from div.block h2.title in style.css

That seems to have done the trick!

dduane's picture

jwolf, thanks so much! Removing those lines from block.tpl.php did the trick.

(Removing the "text-transform" statement turns out to have been unnecessary -- the Signwriter image display overrode it -- but I took it out anyway for the sake of keeping the style.css file tidy.)

Thanks again! I'll put up a link so everyone can see the site when it goes live (probably in a week or so).

Best! -- Diane

Diane Duane | The Owl Springs Partnership | Co. Wicklow, Ireland
http://www.dianeduane.com | http://www.youngwizards.com

Diane Duane | The Owl Springs Partnership | Co. Wicklow, Ireland
http://www.dianeduane.com | http://www.youngwizards.com

Nice site. It looks great.

jggarley's picture

Nice site. It looks great. What photo gallery module did you use for your site at http://www.siphiwe.com/?

TNT Themes

Group organizers

Group categories

Type of post

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: