Blog

How to check if the main page is displayed – is_front_page ()

Often during the customization of the template, the page header needs to contain certain content that should not be visible on the remaining pages. In such cases, a separate page template is not suitable for solving such a problem, and it’s not advisable to make another header template. To do this, you need to check whether the main page is displayed. In general for this there is such a conditional tag:

This tag will work anyway, as for the main static page, and if you have the main page – the page of the latest notes.

© Copyright 2014 -  vchuy-develop.com. All rights reserved

v.chuy
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.