Hi,

I'm running Signwriter on Drupal 4.7.6 and it is working well. Thanks for a great module. I previously tried SiFR but found that my pages were really bogging down.

Here's my problem:

I would like to have different coloured h2 signwriter headings depending on what section of a site a visitor is in.

I am using the php code snippet found on this page - http://drupal.org/node/32077 - that generates a body class and id for each page based on the url.

In my style sheet I can then address specific elements on a page based on a selector that looks like this:

body.section-aboutus ul#nice-menu-1 #menu-53

My issue is that I don't know what a regular expression would look like that matched all h2 elements that appeared on a page where the body tag had a class of 'aboutus'. I have tried various things, but I clearly don't know what I'm doing.

I hope that makes sense,

thanks,

b-dot

Comments

agileware’s picture

Status: Active » Closed (fixed)

To do the body class tag example, you could try:

/<body class=\"aboutus\"><h2.*>.*?<\/h2><\/body>/s