After much searching I cannot find out how to add a second image to my header.
Any help would be great!
Thanks
After much searching I cannot find out how to add a second image to my header.
Any help would be great!
Thanks
More information on where you want this image and how you want it to behave would be great:) Also a link to see what you have so we can give specific advice.
Do you want the second image to have a particular relationship with the first image?
I would like the image close to the right side and it would be a clickable link. I don't think any relationship between the two are needed, but I'm not exactly sure how a relationship works either.
http://www.exlineusergroup.com/index.php
There wouldn't be any relationship between the images unless it was specifically coded in; the important info is that you want a clickable link. You would put that in /includes/templates/your_template/common/tpl_header.php, just after this:Something likePHP Code:<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>Make a rule forPHP Code:<div id="logo2"><?php echo '<a href="your_new_url">' . zen_image($template->get_template_dir('yournewimage.gif', DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . 'yournewimage.gif', 'Your New Alt Text') . '</a>'; ?></div>
#logo2 {}
in your stylesheet to control the position of the new image.
Thanks for the help, I have my image up and I m now trying to figure out how I get the second image to link to a web page other than the the page the original image is linked to. When I add a link in the code and then click the new image, the URL is showing the original image link with my new link all ran together.
We need to see exactly what you did with the file to know what is wrong and how to fix it. Post your code between [php] and [/php] tags.
<?php
}
?>
<div id="logo2"><?php echo '<a href="www.exline-inc.com">' . zen_image($template->get_template_dir('Exline_Transparent.gif', DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . 'Exline_Transparent.gif', 'Your New Alt Text') . '</a>'; ?></div>
<div id="logo3"><?php echo '<a href="www.exline-inc.com">' . zen_image($template->get_template_dir('Exline Parts.1.gif', DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . 'Exline Parts.1.gif', 'Your New Alt Text') . '</a>'; ?></div>
<?php
Your two new logo links are not complete http urls, so the standard HTML link handling adds them to the page base. Make each of them a full url like "http://www.exlineusergroup.com/", or else a relative url like "index.php?main_page=contact_us" or "index.php?main_page=index&cPath=23" if you want to link to a page in your site.
Thanks so much for the obvious fix that I couldn't seem to figure out!