WordPress.org

Ready to get started?Download WordPress

Forums

using theme images directly in header.php (url?) (3 posts)

  1. fonografist
    Member
    Posted 4 years ago #

    hello, i want to use images that i have put in the theme-images folder as links directly in header.php. I want to use icons as link buttons directly in the header.php file.
    what relative url do i use to find these files? it doesn't seem to work if i just use images/image.png in the header file.

    i hope this is not a totally stupid question, I am pretty new to wordpress...

    /oscar, sweden

  2. Arnold Goodway
    Member
    Posted 4 years ago #

    This should do the job:

    <?php bloginfo('template_url'); ?>/images/image.png
  3. fonografist
    Member
    Posted 4 years ago #

    very nice, works perfect! thank you very much. as I said, pretty obvious answer, but I'm new...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.