WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. t3ch33
    Member
    Posted 6 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
    Member
    Posted 6 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

    domain.com/wp/include.php

    You address it as

    include.php

  3. t3ch33
    Member
    Posted 6 years ago #

    thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic