Conditional: if is_front_page

Fundamental 80 views
0 Flares 0 Flares ×

This snippet will allow you to conditionally display code based on whether or not the page being viewed is the front page or not.

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

<?php endif; ?>
Posted in Wordpress


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.


Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×