Closed generic-github-user closed 6 years ago
This can also be done easily with jQuery's .load()
function:
Header HTML include function has been added to main.js
.
$(() => $("#header").load("header.html"));
Changes to the header.html
file will be automatically reflected on all pages that load the header (just about all pages).
Looks like this broke the post page . . .
jQuery still needs to be added to the page.
Added jQuery to the page.
Post content is now filled directly into the header div for posts.
Probably using PHP includes.