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

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

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.

By |2018-08-31T14:12:21+00:00August 20th, 2017|Useful hooks, Wordpress|0 Comments

About the Author:

I web developer specializing in developing websites for small to medium business, and from simple blog to a multi-level online shop on Wordpress, Joomla and other CMS. I develop responsive websites using the most current technologies in development sites. My previous work experience provided me with self-discipline, perseverance, thinking outside the box, and leadership skills that allow me to effectively communicate with others to achieve our goals. My clients are always 100% satisfied. I am a fast learner. I am one of those who enjoys challenges and thrives in a fast paced, goal oriented environment. Currently have experience working with PHP, HTML, CSS, JavaScript, jQuery, Wordpress, Drupal, Joomla.

Leave A Comment