Front_page title screws up all other pages…
-
I am running a new site with WordPress as a CMS with a modified version of Brian Gardners Neoclassical Theme.
Everything is up and running except for one minor detail.
I want the the_title on the (static) front page to be the bloginfo description, and when I in page.php replace:
<h1><?php the_title(); ?></h1>
with
<?php if (is_front_page()) { ?><h1><?php bloginfo(‘description’); ?></h1><?php } else { ?><h1><?php the_title(); ?><h1><?php } ?>
I get a beautiful result on the front page. Perfect.
BUT every other page gets absolutely screwed up. A lot of the formatting goes haywire and I have no idea what to do about it.
I’ll let the site sit for a couple of hours with the error on it, so you can go see for yourself.
I hope that one of you guys have an idea about what to do about it.
Thanks!
/Anders.
- The topic ‘Front_page title screws up all other pages…’ is closed to new replies.