If you only wish to show content only on the WordPress front page, you can do so by wrapping the content in a is_page
(is_front_page) conditional statement. You can also choose to display content on all pages BUT front page by adding “!” to your statement.
Instructions
Insert content as shown below.
<?php if (is_front_page()) { ?>
... whatever you put here will only be shown on the front page.
<?php } ?>
Related Links:
Source: http://codex.wordpress.org/Conditional_Tags
Source: https://developer.wordpress.org/reference/functions/is_page/
Comments