php - How to convert an html content to wordpress -
i have following html code tried place in wordpress page.
html:
<div class="hovereffect"> <img src="<?php echo get_template_directory_uri() ?>phone.jpg" > <div class="overlay"> <h2>hover effect 9</h2> <a class="info" href="#">link here</a> </div> </div>
at moment in site except image not show. how can use code wordpress in way can display image?
i think forget tell place should images from. , forgetting semicolon after get_template_directory_uri();.
this example, here i'm telling folder image from:
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/your_image.jpg">
Comments
Post a Comment