php includes pt2 tutorialThis will teach you how to get the includes to work in directories so you don't have to add the header,footer,style into every directory.
If you do not have your pages split into header, footer, index, and style files than you do not belong here and need to CLICK HERE
The Steps1. Your header.php, footer.php, index.php, and style.css should be in your public_html already.
Please do not put them in a directory cause that's just so extra lmao
2. On your header.php page, put this coding at the top inside of the < head >:
(DO NOT FORGET THE / THAT GOES BEFORE STYLE.CSS!!!! PEOPLE FORGET IT ALOT AND IT MESSES THE ENTIRE THING UP)
3. This code usually works better on the main index.php page (if it does not work than use the other one):
On pages in directories, use this code:
PLEASE TAKE NOTE
IF YOU ARE USING A STYLESHEET FROM LOVEBLUSH THAN PAY ATTENTION TO THIS PARTStylesheets generally do not have a / before the style.css because they're in my stylesheet directory. If the layout is NOT showing up on all your pages than add a /.