Forums

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.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32665
    thebadger
    Member

    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:
    index.php
    header.php
    footer.php
    css/style.css
    work/index.php

    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?

    #99236
    Vermaas
    Participant

    That needs to be done with HTML, not with php.





    This is a title



    All of you content.

    #99270
    thebadger
    Member

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.