Support » Themes and Templates » Images within wordpress theme files
7 years, 7 months ago
What is the best way to place images into things like header.php?
Should that be all done with CSS? Or should I place the images right in there?
Here’s my template HTML file.
Here’s my site.
I’m a novice theme editor, and I’m using an existing theme as a base.
Think I got it. Image paths should look like this, right?
<img src="<?php bloginfo('template_directory'); ?>/images/imagename.png" alt="" width="xxx" height="xxx" />
If it’s in your theme folder and in the images directory of the theme, then yes that’s right.
Thank you very much!