I am using the Paragrams theme from the kind folks at wpshower. I have a little different front page that I would like to load with an image rotator and different layout in the for loop. I have tried all of the conditional comments, with no avail.

There are some posts on this already that didn't have a solution...

I even tried this most basic if else from the WP forum without any help. What am i missing? :(

<?php
if (is_front_page())
{?>

<div>Flash Gordon</div>

<?php } else { ?>

<div>Wins the Battle!</div>
<?php } ?>
link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

Have you tried creating a page template? Make a copy of page.php and call it page-home.php (if your home page is an actual page in Wordpress with the name of 'Home') or if not, then create a file called front-page.php and Wordpress will use that as the homepage template.

These two Wordpress Codex links will help you:

link|improve this answer
1  
Thanks Dwayne. That was the ticket. front-page.php that is... – buildakicker Feb 23 at 18:43
Awesome. Glad it worked for you Buildakicker. By the way, welcome to the site. – Dwayne Feb 24 at 1:30
Thanks! I just found that StackOverflow had all these other sites! LOVE IT! I use WP and SharePoint quite a bit, so this is so nice. – buildakicker Feb 24 at 21:40
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.