• Hai all,

    I just started installed wordpress on localhost with Mamp pro, everything okay, but when i’m editing themes to access image from Folder assets/images under theme – show broken image on browser.

    But when i trying upload image to folder Uploads, everything looks good. I am using WordPress Version 6.4.3.

    This code :
    <img src=”<?php echo get_template_directory_uri(); ?>/images/icon/icon-tracking.png” />

    Any help will be appreciated
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • In the text you write about the path

    assets/images

    But in your code you use

    <?php echo get_template_directory_uri(); ?>/images/icon/icon-tracking.png

    Check exactly which of these is correct. Without knowing your structure, I’m guessing that the code should look like this:

    <?php echo get_template_directory_uri(); ?>/assets/images/icon/icon-tracking.png
    Thread Starter iamburem

    (@iamburem)

    it works.
    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Broken Image the Theme’ is closed to new replies.