Hi. I want to add an additional image to my header (in between my logo and my search box to the right). Normally and in the past, I would/have just added some html to my tpl_header.php page where I want the logo to appear. Then add the style to my stylesheet. This is what I am thinking:
Code:
<div id="midheader"><img src="../images/MYIMAGE.gif" width="100" height="60" alt="Mid Header"></div>
But I am now wondering, if this would be the best practice to just add html to the .tpl php page? Plus, I am running both SSL and non SSL so I am a little worried about that image not showing correctly on each page (if I hard link). The image is in my images folder in my current loaded template. Is this the correct context? I see an aweful lot of syntax that is written in .php (which I am not good at) that looks like this:
Code:
<img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" />
I can get the text in the right area of the tpl_header.php file. And I can figure out how to style it. I am just concerned with the coding I need to add the the tpl_header.php file. Am I OK with the concept of the coding above for this page?
Bookmarks