I am trying to add some static images to the single product template in WooCommerce but they are not displaying properly.
I am hooking into the woocommerce_after_single_product_summary
hook and everything is being included in the file fine.
I have added, among other things, the following code:
<div class="product-detail-header">
<img src="<?php echo get_stylesheet_directory(); ?>/images/sig-technical.png" />
<h3>Technical</h3>
<hr>
</div>
For some reason the image path is inserting itself after the path of the current page which is obviously not where it should be pointing to.
It is translating to
http://wp_project2/product/jazz/C:/wamp/www/wp_project2/wp-content/themes/Divi-child/images/sig-technical.png
instead of
C:/wamp/www/wp_project2/wp-content/themes/Divi-child/images/sig-technical.png
I've been racking my brain and can't figure this one out. Any ideas would be greatly appreciated.
get_stylsheet_directory_uri()
instead.