WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Making good progress, image ref help please (3 posts)

  1. dave-g-o
    Member
    Posted 5 years ago #

    Hello,

    I am trying to build a nav menu on my left side bar using the following code:

    <div class="left">
    
    	<ul>
    
    		<ul class="mynav">
    <li><img src="images/designstyle.gif" width="179" height="32"/></li>
    <li><img src="images/planning.gif" width="168" height="35"/></li>
    <li><img src="images/designstyle.gif"/></li>
    <li><img src="images/designstyle.gif"/></li>
    <li><img src="images/designstyle.gif"/></li>
    <li><img src="images/designstyle.gif"/></li>
    <li><img src="images/designstyle.gif"/></li>
    </ul>

    however the images come out blank, not sure if I need to ref them in the CSS file instead and how to do this?

    Thanks in advance.

  2. rizaldy
    Member
    Posted 5 years ago #

    are the image folder is in your wp-content/themes/(yourtheme)

    if it is, try put <?php bloginfo('template_directory'); ?>
    <img src="<?php bloginfo('template_directory'); ?>/images/designstyle.gif"/>

    -A-r-

  3. dave-g-o
    Member
    Posted 5 years ago #

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.