I cannot call my picture in xampp

I’m trying to change html5 to wordpress theme. When I edit my coding and want to call picture its doesnt show it.

I setup wordpress in my Laptop using Xampp.

Read More
<img src="assets/img/user.png" alt="Stanley"> 

I think the code above is correct.

Or I need to make anychange so I can call my image?

Anyone can help me?

Related posts

Leave a Reply

1 comment

  1. You should move your images into your theme folder at wp-content/themes/theme-name and use:

    <img src="<?php echo get_template_directory_uri(); ?>/assets/img/user.png" alt="Stanley" />
    

    This will ensure your image src uses an absolute path instead of a relative path.