• Resolved warpdesign

    (@warpdesign)


    Can someone please tell me what the function name is that prints out the path to the theme’s directory relative to index.php? i.e. wp-content/themes/theme I tried get_template_directory() which is not what I want…

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Some examples:

    <?php bloginfo('template_directory'); ?> returns the active template directory
    
    <?php bloginfo('url'); ?>  returns URL of web root
    
    <?php bloginfo('title'); ?> returns blog name

    You’ll need a trailing slash, i.e.:

    <?php bloginfo('template_directory'); ?>/images/header.jpg

    Thread Starter warpdesign

    (@warpdesign)

    Sweet, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘theme directory path’ is closed to new replies.