WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] images not displaying (4 posts)

  1. raproo
    Member
    Posted 1 year ago #

    I am trying to customize a theme based on twentytwelve and place typical graphic items in the header. Namely, a logo and social networking "buttons." I am working on a local site right now. It currently is referencing the links as follows:

    <figure id="logo">
    	<a href="<?php echo get_settings('home'); ?>">
    		<img src="C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\LOGO_Horiz_web_gradient.png" alt="S42" height="50" />
    	</a>
    </figure>

    and for the social media:

    <div class="social">
    	<p class="followUs">Follow Us:</p>
    	<div class="socialIcons">
    
    		<a href="#">
    			<img src="C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\iconRSS.png" alt="RSS" height="20" />
    		</a>
    		<a href="#">
    			<img src="C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\iconFacebook.png" alt="Facebook" height="20" />
    		</a>
    		<a href="#">
    			<img src="C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\iconTwitter.png" alt="Twitter" height="20" />
    		</a>
    		<a href="#">
    			<img src=C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\iconGoogle+.png" alt="Google+" height="20" />
    		</a>
    		<a href="#">
    			<img src="C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\iconYouTube.png" alt="YouTube" height="20" />
    		</a>
    		<a href="#">
    			<img src="C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\iconVimeo.png" alt="Vimeo" height="20" />
    		</a>
    		<a href="#">
    			<img src="C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images\iconLinkedIn.png" alt="LinkedIn" height="20" />
    		</a>
    	</div>
    </div>

    the location for the theme files is:

    C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42

    the location for all images is:

    C:\Users\User\Documents\Websites\S42.dev\wp-content\themes\S42\images

    I would prefer to set up the relative links so it's all ready to go live on a website but can't seem to get them working either... not sure what i'm doing wrong. The html mockup displays the exact same links perfectly...

  2. viky081
    Member
    Posted 1 year ago #

    <img src="<?php bloginfo('template_url');?>/images/LOGO_Horiz_web_gradient.png" alt="S42" height="50" />

    use like this ..

  3. raproo
    Member
    Posted 1 year ago #

    SWEET! thank you!!! don't know why i had such a hard time finding that

  4. viky081
    Member
    Posted 1 year ago #

    welcome

Topic Closed

This topic has been closed to new replies.

About this Topic