WordPress.org

Ready to get started?Download WordPress

Forums

Buddypress childtheme - path to child theme image folder (3 posts)

  1. cavamondo
    Member
    Posted 3 years ago #

    Im building a child theme for a multisite buddypress site. And i wish to use the logo.png image located at the/wp-content/themes/theme/images/logo.png

    Normally i would go about it like this:
    <img src="<?php bloginfo('url'); ?>/wp-content/themes/theme/images/logo.png">

    But i would much more prefere a solution where i dont have to define an absolute path efter the <?php bloginfo('url'); ?>

    Is there a smarter way to implement this ?

  2. This is not buddypress or multisite specific. It;s the same way in all WordPress themes.

    http://codex.wordpress.org/Function_Reference/bloginfo

    which shows you would use:

    <?php bloginfo('stylesheet_directory'); ?>/images/logo.png

  3. cavamondo
    Member
    Posted 3 years ago #

    Excellent, thx ..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.