Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Common header and footer in HTML, should I use JavaScript, PHP or other for SEO? Firstly, I am aware this question is similar to others asked in the paste, however I'm specifically asking about

@Nimeshi995

Posted in: #Html #Javascript #Php #Seo

Firstly, I am aware this question is similar to others asked in the paste, however I'm specifically asking about the reliability of SEO in this question (also many of the other questions are outdated).

I have developed a new website in HTML, where the header and footer are the same on every page (obviously).

I'm currently using jQuery to inject them into every page using:

$("#loadHeader").load("header.html");
$("#loadFooter").load("footer.html");


This works, however as it's client side I'm assuming search engines won't see any of the content stored in header.html, therefore SEO will not work for any of the headers/footers, on any of the pages?

If I use PHP to inject the headers/footers, will SEO work as if they were included directly in the HTML?

If not, are there any other ways around this issue?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme