On an average page, we may want to display the page title. The home page is a special page of course. Let's prepare a custom template for it.
In the following steps, we'll set up a custom page template that will remove the page heading and bring in a custom template for our page contents. We'll equip the custom content template with the markup structure we need for the carousel and columns:
themes
folder, find the template-custom.php
file. This is a sample page template that's easy for us to adapt.page-home.php
as shown in the following screenshot:page-home.php
file in your editor and edit the opening comment, changing the template name to Homepage Template
:/* Template Name: Homepage Template */
Homepage Template
.page-home.php
open, find the following line of code:<?php get_template_part('templates/page', 'header'), ?>
page-header.php
file inside the templates
folder.) Thus, we can remove the page title by simply removing the first line or commenting it out. Here I've used a single-line comment to comment out the call for the page header as follows:<?php // get_template_part('templates/page', 'header'), ?>
<?php get_template_part('templates/content', 'page'), ?>
That's a start! Now to free our carousel from its bounding container element.