Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Creating a static front page

Rebecca Jensen
Rebecca Jensen
11,580 Points

After creating front-page.php, when I visit my site, it is now blank.

I overwrote my index.php file and saved it as front-page.php. Added the loop content inside some divs. And now when I visit the site, it is blank.

My front page is set to static and to my "Home" page.

When I opened the Home page in the editor in Admin, I could see all the html. So I tried deleting that page and making a new, blank "Home" page to see if that would get recognized, but that didn't work.

So I tried pasting my in new html into the new Home page I created (even though I don't think that's the right answer), but I can't see that either.

Not sure where to go from here.

Rebecca Jensen
Rebecca Jensen
11,580 Points

I moved my front-page.php file out of my folder, and the site is visible again, now that it's using index.php. But of course, I'd like to be able to use front-page.php as my front page!

1 Answer

Hi Rebecca,

Try switching on WP_DEBUG in your wp-config.php. Instead of seeing a white page, you should then see an error.

This should help you to get to the bottom of the problem. Just remember to switch it back to false once done :)

-Rich

Rebecca Jensen
Rebecca Jensen
11,580 Points

Yes! That helped. A simple typo, I had "endswhile" instead of "endwhile".

Thanks!

No problem. Glad you managed to sort it out :)

-Rich