August 2017
Beginner
412 pages
10h 30m
English
First, cut out the entire top of your index.php file. This means cutting the doctype declaration, the <head> tag, any miscellaneous opening tags, and the <header> tag. In my case, I'm cutting out all the way from this initial line:
<!DOCTYPE html>
I'm cutting through to, and including, these lines:
</header><!-- #masthead --><div id="content" class="site-content">
Then, paste this text into a new file named header.php that you created within your theme folder.
Now, at the very top of the index.php file (that is, where you just cut the header text from) write in the following line of WordPress PHP code:
<?php get_header(); ?>
This is a WordPress function that includes the header.php file you just created. If you save everything ...
Read now
Unlock full access