Replace Page Title with an image
-
I am trying to replace the page titles with images as the client has a very specific- not google/web safe font they want used.
I’m using a child theme off of twenty ten.
I put this in the page.php file
<h2><?php if (is_page('our-farm')) echo "<img src="Images/ourfarm.png"/>"; elseif (is_page('about us')) echo "<img src="aboutus.jpg" />"; else echo the_title(); ?></h2>
but it caused an error on the site. What is the best way to do this using a child theme?
Thanks.
Niki
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Replace Page Title with an image’ is closed to new replies.