• Resolved vandalyzed

    (@vandalyzed)


    Pardon the question for it’s seeming newbishness. I am trying to develop my own theme, built around an html design I’ve made.

    Obviously images that are called in style.css show up. But any html coding that I have in index.php that includes the <img> tag, those images do not show.

    What I want to do is create a menu/nav bar with images I have created myself. A different image for each link. Those images don’t seem to show.

    Is using that tag in index.php not possible? Would it be better to create a single image of all the images/links and create an image map?

    <div id="nav">
            <a href="https://blog.com/"><img src="images/home.png" width="75" height="15" border="0" /></a> |
    	<a href="https://blog.com/"><img src="images/askvan.png" width="100" height="15" border="0" /></a> |
    	<a href="https://blog.com/"><img src="images/about.png" width="113" height="15" border="0" /></a> |
    	<a href="https://blog.com/"><img src="images/articles.png" width="300" height="15" border="0" /></a>
    </div>

    That’s the code I’ve put in index.php and the images do not show. So, this is wrong?

    Any help would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Those images don’t seem to show.

    where are the images located?

    I think you placed the images in your themes folder. If so then here is a solution:

    <a href="https://blog.com/"><img src="<?php bloginfo('template_url'); ?>/images/home.png" width="75" height="15" border="0" /></a>
    Thread Starter vandalyzed

    (@vandalyzed)

    I did, Muthu. Thank you for the asssistance. I’ll see how that works out.

    Whooami, thanks for replying. Muthu was correct in where I placed them. The themes/images folder.

    Thread Starter vandalyzed

    (@vandalyzed)

    Update: Solved

    Your solution worked, Muthu. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images on index.php’ is closed to new replies.