SEO Book Pro Beta SEO Book PRO v 1.5.12
Start something that matters

Stop wasting valuable time with projects that just isn't you.

Supercharge Your SEO with SEO Book Pro's Comprehensive Dashboard Suite.

Learn more and start today

How Much Does an SEO Audit Cost?

Send Me a Proposal

Hello, I'm Dimitar, the CEO of SEOBookPro

Introducing FREE Domain Audit by SEOBookPro!

Are you in need of a FREE* Technical SEO and Website audit? Look no further!

With our Free Domain Audit, you can uncover common critical issues that may be impacting your website's performance. Our expert team will analyze your website's technical SEO aspects and provide you with valuable insights to improve your online presence.But that's not all! We go beyond just auditing your website. We offer you the opportunity to create a new client project, allowing you to track and monitor your website's SEO progress over time. By keeping a close eye on your website's ranks, you can make informed decisions and take proactive steps to boost your online visibility.

When you sign up with us, you'll receive daily updates on your website's ranks. This invaluable information will help you stay informed and take timely actions to improve your website's performance. Don't miss out on this fantastic opportunity to gain insights into your website's health and enhance your SEO strategy. Start tracking and increasing your website's ranks today!

Let us help you unlock the potential of your website and achieve greater online success.

*Limited time offer. Terms and conditions apply.

  • Create a new client project to track and bump your website SEO.
  • Start Track and Increase your website ranks
  • Sign up to get daily updates for your website ranks
  • Get Free Domain audit with commin critical issues on your website
  • Start Track and Monitor your Website and SEO health

FREE Domain Audit

5 Steps to get_header() and get_footer() from specific WordPress Template Folder

Get the SEO Book Pro - SEO Plugin for WordPress to make live edits on the Front End - Live Demo
get_header and get_footer for WordPress Template

get_header() and get_footer() from specific WordPress Template Folder


Step One: Create Custom Page Template in your root WordPress theme folder


Instead of adding an additional new custom template file in your WordPress template folder, you can create a new folder with a specific name to serve any custom WordPress Page Templates to assign them to specific Pages in your WordPress website.

I Got a new Land Page in the WordPress Page Templates Folder Like the example below:

page-templates/landing-amp.php
To get the new custom page template layout available to assign it to your specific page on the website you need to hook the function for this.

Step Two: At the top of your custom page template file add the related function from WordPress Codex


<?php /* Template Name: Landing AMP Projects */;?>

To learn more about how it’s work visit Creating Custom Page Templates for Global Use

Step Three: Create New Folder in your WordPress root Template Folder to serve the new files for get_header() and get_footer() functions


In my example, I create a new folder in my current active WordPress Template folder with the name “lamp“. In the new folder create your custom get_header() and get_footer() files to load on your custom page template. The customized head and footer files are served as template parts and are not necessary to name them with
  • header-{custom-name}.php
  • footer-{custom-name}.php
This is because we will get them with the WordPress function get_template_part() and will not serve this 2 new header and footer required WordPress Template files from the root how it is by the default function for WordPress Templates to include Template Tags – Include_Tags

Step Four: Create two new files in the “lamp” folder as the example below

  • /lamp/header-amp.php
  • /lamp/footer-amp.php

Step Five: Open your Custom Page Template from Step One and below the 1st-row code the snippets below


  • <?php get_template_part( ‘lamp/header-amp’ );?>
  • <?php get_template_part( ‘lamp/footer-amp’ );?>

Recommended Article about the next part of loading the content on those new pages with running the basic Loop and display your WordPress Page Content What the_content and get_the_content are used in WordPress? What the_permalink and get_the_permalink functions are used for in WordPress? How to create a simple WordPress Loop for posts?