rjthedj Posted June 18, 2009 Share Posted June 18, 2009 Within the header.tpl file, is it possible to have the image tag to point to an image to display in, let's say the top portion of the page? I can't make my image work for some reason. My other images are backgrounds and are showing up, but they are all referred in the style.css Could this be it, that we can only refer to images in the style.css for them to display? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 18, 2009 Share Posted June 18, 2009 How are you trying to add the image... put the code here. 0 Quote Link to comment Share on other sites More sharing options...
rjthedj Posted June 18, 2009 Author Share Posted June 18, 2009 Here is the code in my header.tpl file. This is just the first part that relates to the top portion with my header background, header image, and navigation. What I have highlighted in bold is the image that will not show up. I have this image logo saved in the images folder. Maybe it needs to be outside the images folder? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>web monkey biz - Portal Home</title> <base href="https://www.webmonkeybiz.com/billing/" /> <link rel="stylesheet" type="text/css" href="templates/mytmplts/style.css" /> <script type="text/javascript" src="includes/jscript/jquery.js"></script> </head> <body> <div id="wrapper"> <div id="header"><h1><img src="images/webmkylogo.jpg" alt="Web Monkey Biz: A Design Company" width="220" height="161" /><span>Web Monkey Biz Design</span></h1> </div> <div id="nav"> <ul> <li> <a href="index.htm"> HOME</a> </li> <li><a href="about.htm">ABOUT</a></li> <li> <a href="services.htm"> SERVICES</a> </li> <li><a href="portfolio.htm">PORTFOLIO</a> </li> <li><a href="contact.htm">CONTACT</a></li> </ul> </div> Here is the link to page that is not showing my header logo: https://www.webmonkeybiz.com/billing/ 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted June 18, 2009 Share Posted June 18, 2009 You need to use the path to the image <img src="templates/{$template}/images/webmkylogo.jpg" alt="Web Monkey Biz: A Design Company" width="220" height="161" /> the image is relative to the whmcs root 0 Quote Link to comment Share on other sites More sharing options...
rjthedj Posted June 18, 2009 Author Share Posted June 18, 2009 Image now shows up. Thanks for your help. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.