WordPress.org

Ready to get started?Download WordPress

Forums

referencing theme folder (is there a global variable?) (3 posts)

  1. owangolama
    Member
    Posted 4 years ago #

    Hello. I'm trying to include a reference to my theme folder, but obviously I'd prefer not to use a hard-coded url. Is there a global variable definition that is the path to the currently used theme folder?

    Thanks in advance for any help.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    <?php get_bloginfo('template_directory'); ?> or TEMPLATEPATH depending on which you want - a url or a path.

  3. owangolama
    Member
    Posted 4 years ago #

    thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic