The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Php includes and CSS files.
So, I’ve figured out how to work php includes, but now I’ve encountered a problem when including css files.
This is my directory:
now the work/index.php i’ve figured out how to include the header which contains the css file links.
The problem is, the css won’t load from that work/index.php file.
What do I need to add the to header.php file to get the css files to load no matter which directory a php file is calling it from?
That needs to be done with HTML, not with php.
This is a title
All of you content.
As I’m currently running on a local server, including a full url wouldn’t work but once I finish development, I suppose I could go in and manually add in the full url.
But how would I go about making a settings file to define the absolute URL?
And as note, I know nothing about PHP, just how to work includes thats just because of wordpress development.
Any help would be appreciated.