<img src="<?php echo get_template_directory_uri(); ?>

i want to include an image into my wordpress theme. I`m pretty sure i usually use the <img src="<?php echo get_template_directory_uri(); ?> method e.g. and i used to work. Now on my website on www.000webhost.com it doesnt work. By researching i found it could be because 000webhost is a https and not http webhost and the <img src="<?php echo get_template_directory_uri(); ?> method return only http and not https values.
Am i right ? how can i solve this dilemma and is there a better way to include images into https wordpress sites ? Thanks for your help in advance

If https is the problems there are ways to remove http then add https to links in php.
Stackoverflow them! :slight_smile: