Insert footer image in Wordpress -


i have following worpress theme (http://alethemes.com/socha/) , trying insert footer image it. have tried following code in appearance -> editor -> footer.php happens text in alt="image description" displayed in footer section - no image. image source have uploaded image wordpress , have copied images link url defined in media -> media library. url in code below example of url , not actual url.

</div> <footer id="footer-main" role="contentinfo">     <?php if (ale_get_option('copyrights')) : ?>         <p class="copy"><?php echo ale_option('copyrights'); ?></p>          <!-- footer image here -->         <img src="http://mydomain.com/myimagefolder/image.format" alt="image description">      <?php else: ?>         <p class="copy">&copy; <?php _e('2013. socha responsive theme. rights reserved.', 'aletheme')?></p>     <?php endif; ?>     <div class="topbutton">         <a href="#top" id="gotop"><?php _e('top', 'aletheme')?></a>     </div>     <div class="cf"></div> </footer> <?php wp_footer(); ?>  </body> 

i have tried inserting code above in appearance -> theme options -> themes -> copyright again dipslayed text in alt="image description".

can tell me how can insert footer image?

wordpress can't find image. location of uploaded image? if uploaded via wp uploader, in 'uploads' directory.

try using;

<img src="<?php echo get_template_directory_uri(); ?>/myimagefolder/image.format" /> 

using wordpress's built in get_template_directory() function make sure if url changes, wordpress find image.

also, make sure put image width , height attributes tag.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -