How to display content only on the WordPress “Front Page”

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.

Related Links:
Source: http://codex.wordpress.org/Conditional_Tags
Source: https://developer.wordpress.org/reference/functions/is_page/

Comments

Leave a Reply

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

Siteground Web Hosting

Snippet Info

Tested with Wordpress v. 4.8

How to display content only on the WordPress “Front Page”
4.6 (92.86%) 14 votes
Please report broken snippets.
Report Broken Snippet
Web Hosting