I'm trying to create a custom theme in Wordpress, and currently I'm working on my header.php
file. However, I'm unable to display my logo image. Here's the code for the same:
<body>
<div class = "container">
<div class = "five columns">
<a href = "<?php echo get_option('home'); ?>"><img src = "<?php bloginfo('template_url'); ?>/img/sem.jpg" title = "<?php bloginfo('title'); ?>"></a>
</div>
</div>
</body>
The sem.jpg
image is stored inside the img
folder inside my root project directory. However, the logo doesn't seem to be displayed on my webpage. I have also tried using images of other formats, but none of them seems to work. I have also called the get_header()
function inside my index.php
.
What seems to be wrong in my code?