• Resolved gkhabas

    (@gkhabas)


    <img src=”images/socialmedia/facebook.png” width=”12″ height=”16″ />

    This image path doesn’t shows image in my header.php file. Is there any other way?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use get_template_directory_uri() or get_stylesheet_directory_uri() to get the path to the current theme’s folder, if that’s where your images are stored:

    <img src="<?php echo get_template_directory_uri() . '/images/socialmedia/facebook.png'; ?>" width="12" height="16" />

    Thread Starter gkhabas

    (@gkhabas)

    Thank you stephencottontail… It works… 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to setup image path in wordpress?’ is closed to new replies.