![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
What I would like to do is the following....
If the page is a "post" from the "portfolio" category then I want to override the H1 so its <h1>Portfolio</h1> and not the name of the post. Likewise if the "post" is from the "blog" category then I want to override the H1 so its <h1>Blog</h1> and not the name of the post. I'm guessing the answer is to use hooks but could you point me in the right direction please. Something off the top of my head: PHP Code:
|
|
#2
|
||||
|
||||
|
Which theme are you using? Where did you try and add this code?
__________________
Nick "Fred and/or George Weasley" Croft Designs by Nick the Geek @Nick_theGeek on Twitter Make web design easier, get FireBug for FireFox Want to learn more about Genesis? Check out my Genesis Explained Series |
|
#3
|
|||
|
|||
|
I'm using the metric theme and I tried adding this in both the functions file and in the simple hooks "genesis_before_content Hook" area.
I don't even know if the code I typed is correct... |
|
#4
|
||||
|
||||
|
no, the code isn't right I just needed some info so I can help make it right.
In the functions.php file you don't need <?php ?> so just use PHP Code:
__________________
Nick "Fred and/or George Weasley" Croft Designs by Nick the Geek @Nick_theGeek on Twitter Make web design easier, get FireBug for FireFox Want to learn more about Genesis? Check out my Genesis Explained Series |
| Thread Tools | |
| Display Modes | |
|
|
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us