Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to add header and footer to html static page?

I have wordpress website that I have converted to html.

I only need one page from it.

I added this page to the directory of the second wordpress website.
test.com/html-page

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

My problem is: I want to add header and footer of the second website in it.

I have deleted the header and the footer of the html page and change it to php then added header and footer like this

code:

   <?php get_header(); ?>
      <!DOCTYPE html>
      <!-- here is the page content-->
    </html>
        <?php get_footer(); ?>

But it doesn’t show anything at all

>Solution :

Simply use

<?php include 'includes/header.php'; ?>

replace the "includes/header.php" with the php file you actually want

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading