SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    728
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Unable to insert image in my .php page using common wp php tags.

    Hello all. working on a child them (parent twentyfourteen, but don't think that should matter)
    I tried using both

    Code:
    <img src="<?php echo get_bloginfo('template_url') ?> /imgs/smOvalLogo.png"/>
    Code:
    		<img src="<?php bloginfo('template_directory'); ?> /imgs/smOvalLogo.png"/></a>
    neither works.
    Can anyone advs an alternative method or perhaps spot my error?
    thx
    D

  2. #2
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    728
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    k
    never mind again
    found the solution.

    <a href="#"class="navbar-brand"><img src="<?php echo get_stylesheet_directory_uri(); ?>/imgs/smOvalLogo.png"/></a>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •