How to conditionally display a section on the homepage?

Use the is_front_page() or is_home() conditional tag in your theme’s template files to show a section only on the homepage.

Back to blog

Leave a comment