I'm trying to echo an image from my '_images' folder, but if I write the following code, it is only for my website:
echo '<img src="http://mywebsite.com/mytheme/wp-content/themes/my theme/_images/project3image1.jpg">';
I've changed it to this so when someone else uses my theme, it takes them to their own website directory:
echo '<img src="<?php bloginfo('stylesheet_directory'); ?>/_images/project3image1.jpg">';
But there must be something wrong with this code when I put that and preview my website it gives me this error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/32/9825632/html/bomb/wp-content/themes/bomb/header.php on line 101
I'm a php noob so it's probably an obvious mistake!