WordPress – PHP Front Page Conditional Argument

Sometimes, a WordPress template you would like to use does not support the proper functioning of is_front_page(). If you are looking for a way to display some code (HTML or PHP) ONLY on the home page of your WordPress site, regardless of whether you have set the home page to be your blog or a static page, use the following:

<?php if ( $_SERVER[“REQUEST_URI”] == ‘/’ ) : ?>
-Do Something-
<?php endif ?>