Quantcast
Channel: Tishonator
Viewing all articles
Browse latest Browse all 293

How to Display Page Header in Homepage

$
0
0

In general, the Page header is not displayed in Homepage. In case you want to display it in homepage, here are all of the necessary steps:

1. Install and Activate the WP Editor plugin: https://wordpress.org/plugins/wp-editor/

It is a very useful plugin which allows you to edit files inside all of the theme folders:

WP Editor Plugin

2. Login to Admin Panel -> Left Menu -> Appearance -> Theme Editor

3. Open front-page.php

Below:

<?php $displaySidebar = tishonator_display_sidebar_in_homepage(); ?>

Insert the following code:

<?php tishonator_show_page_header_section(); ?>

Then save changes.

4. Open content.php file.

Replace

<?php if ( !is_single() ) :

with

<?php if ( !is_single() && !is_front_page() ) :

Then save changes.

That’s all. Now, the page header will displayed in your website homepage.

 


Viewing all articles
Browse latest Browse all 293

Trending Articles