• Resolved grobari8

    (@grobari8)


    Hello, i’m having a big problem with a website that i’m making. When I try to put an image with HTML, for example:

    <img src="picture01.jpg" alt="" />

    I check on the browser and NOTHING appears, it doesn’t recognize the image. I don’t have the faintest idea what’s going on. Can someone help me please? thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Change the img tag to:

    <img src="picture01.jpg" alt="" />

    to:

    <img src="http://mysite.com/picture01.jpg" alt="picture 01" />

    where mysite.com is your fully qualified domain name.

    You may or may not need www. here, like:
    <img src="http://www.mysite.com/picture01.jpg" alt="use alt text" />

    The alt text is a short piece of text that describes the image for browsers that do not show images.

    It is also further recommended to use WordPress to get the home url, so that anything hard coded is not affected by a domain name change.

    <?php get_home_url(); ?>

    <img src="<?php get_home_url(); ?>/picture01.jpg" alt="use alt text" />

    The trailing slash may or may not be required and also please note that image files are not typically located in the root. Use an FTP client, such as FileZilla to find this file picture01.jpg and for quick uploads, site backup, and site maintenance.

    Thread Starter grobari8

    (@grobari8)

    Yeah, that was the problem, the ‘src’ path. I was experiencing some problems also with JQuery plugins but now it’s working fine

    Thanks a million dude!

    Please mark this as resolved and you are quite welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I can't see images on my web’ is closed to new replies.