1

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 } ?>
0

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:

  • 1
    Thanks Dwayne. That was the ticket. front-page.php that is... – jasonflaherty Feb 23 '12 at 18:43
  • Awesome. Glad it worked for you Buildakicker. By the way, welcome to the site. – Dwayne Charrington Feb 24 '12 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. – jasonflaherty Feb 24 '12 at 21:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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