To hide the title of a particulate page in WordPress, the home page in this example, follow the steps below.
- Log into WordPress.
- Click on 'Appearance'.
- Click in 'Editor'.
- Click the link on the right side of the screen with the words 'page.php' underneath it.
- replace the line of code:
PHP | copy code | ? 1 <?php the_title(); ?>
- Click the 'Update File' button.
with
PHP | | copy code | | ? |
1 | <?php if(is_page('Home')){}else{the_title();}?> |
Note: Some WordPress themes don't properly display the correct page.php file in the WordPress editor. This is because the theme author modified WordPress's default page.php file and saved it as a different filename. You will know if this is the case because your changes have any affects. If this is the case, you will need to use an FTP program to find the correct file to modify. Usually the theme author will include the word 'page' in their modified version.