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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

android - CoordinatorLayout, FAB and container layout conflict -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -