Removing the Page Title from Front page in Centric Pro

Posted on

Centric Pro‘s demo and set up instructions expect you to be using the default settings for Reading in your WordPress site. As the front page is made up of widgets and does not have the list of posts, it is a good practice to set it as a static page.

Now when we do this, there’s a problem.

A block of code in functions.php for repositioning the Page Title set to work on all static Pages (other than those that use a Page Template) causes the title of “Home” static Page to appear.

To fix this, inside centric_post_title() just replace

if ( is_page() and !is_page_template() ) {

with

if ( is_singular( 'page' ) && !is_page_template() && !is_front_page() ) {