Using sIFR to replace page titles

Joined: 04/22/2008

I recently installed the dynamic rendering module along with sIFR in order to replace key text on my website. One of the things I want to replace is the page titles. The problem is the suggested CSS Selector doesn't seem to be working. To replace the page titles it suggested "#tabs-wrapper h2" but that doesn't seem to be doing anything. I have firebug installed and know how to use it to look into the css of pages, however I'm not quite proficient enough to figure out what's going wrong and what I should actually put in the CSS Selector box. Could anyone give me some advice? If it helps you can feel free to go to www.tenmilevineyard.org and check out the site for yourself.

Thanks in advance to anyone who can help me out.

IX
IX's picture
Joined: 07/07/2007
Looks to me like your page

Looks to me like your page titles are h1s, not h2s. If I understand what you are trying to do, it would look like you need sIFR to replace the text in h1.title.

Am I missing what you are trying to do?

-----------------------------------
Jeff Nine
Studio Nine Creative
http://www.studioninecreative.com
-----------------------------------

Joined: 04/22/2008
So do you think having

*UPDATE* I tried putting ".title h1" in and it worked. My question now is was that too broad? I want to make sure it's only changing the page titles, not anything else. I don't know much about css & html, but what little I do know tells me that there aren't going to be a lot of h1 titles on a page, right? *END UPDATE*

So do you think having #tabs-wrapper h1 should work? I thoughtI tried that and it didn't work, but I'll try again. I inspected the page with firebug and thought it looked like they were h1 as well, but I didn't know what else to put in there. Not sure where the #tabs-wrapper is coming from, but that's what the module suggests for replacing page titles.

G&G Moderator
Josiah's picture
Joined: 12/20/2007
I think I'd more likely #main

I think I'd more likely #main h1.title as that would describe the primary title of #main content area.

IX
IX's picture
Joined: 07/07/2007
I agree with Josiah. You

I agree with Josiah. You should only have the one h1.title in #main. I glanced through your code in Firebug and don't see any ID named "tabs-wrapper". Where are you seeing that ID?

-----------------------------------
Jeff Nine
Studio Nine Creative
http://www.studioninecreative.com
-----------------------------------

Joined: 04/22/2008
I didn't see #tabs-wrapper

I didn't see #tabs-wrapper anywhere in my page, but the Dynamic Rendering and sIFR modules for drupal have suggested css for various parts of the page. When I clicked on the "page title" link it automatically put in #tabs-wrapper h2 in for the code. It obviously doesn't work for every theme, I just didn't know what else to put in there.

Joined: 04/22/2008
#main h1.tite didn't work,

#main h1.tite didn't work, but "#main .title h1" did. I'm assuming those do the same thing.

Thanks so much guys!

Joined: 04/22/2008
I've moved on now and am

I've moved on now and am trying to replace my node titles with sIFR as well. When people visit the audio or blog page I want the titles for the blog entries or podcast episodes to be replaced. Using ".node h2" seems to work, but it seems to break the links in the process. It replaces the text, but you can no longer click on them to get to the actual blog entry or podcast episode. Not sure if this is a bug in sIFR or if I'm missing something. Any suggestions?

IX
IX's picture
Joined: 07/07/2007
I don't know if this will

I don't know if this will work, but try '.node h2.title a'.

-----------------------------------
Jeff Nine
Studio Nine Creative
http://www.studioninecreative.com
-----------------------------------

Joined: 04/22/2008
I tried that and it replaced

I tried that and it replaced the text but this time didn't even make it look like a link at all. Before it would still appear to be a link (change cursor when hovered, etc...) but wouldn't go anywhere. When I tried it your way it replaced the text but acted like regular text, seems like no link was there at all.

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
What I Did

I've done h2 links as sifr. With the render module set the h2 to be your sifr. Something like '.node h2'. Then, there is a check box for underlining... or something like that. Check that. It basically adds underline=true to your sFlashVars which is what gives the affect you are looking for.

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com