[resolved] Is this correct? regarding paths in themes (3 posts)

  1. t3ch33
    Posted 8 years ago #

    wp is installed at: domain.com/wp

    so, the theme is located at: domain.com/wp/wp-content/themes/default

    am i correct in stating that if i want to include another file (include.php) in the default theme's header.php, i would map out the path to the include as if the default theme's header.php was actually located at domain.com/wp ? ... so, if i wanted to include domain.com/wp/include.php, in domain.com/wp/wp-content/themes/default/header.php, the include should read include "include.php" ?

  2. ehab
    Posted 8 years ago #

    If you see the theme files of the Default theme, you would see that it is addressed in such manner.

    So yeah, to include


    You address it as


  3. t3ch33
    Posted 8 years ago #

    thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic