WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I can't see images on my web (4 posts)

  1. grobari8
    Member
    Posted 2 years ago #

    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

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    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.

  3. grobari8
    Member
    Posted 2 years ago #

    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!

  4. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Please mark this as resolved and you are quite welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic