My Site
I want to add "contact Us" in the header section next to where it says home and login. does anyone know how this is done please?
My Site
I want to add "contact Us" in the header section next to where it says home and login. does anyone know how this is done please?
Make a copy of tpl_header.php to your hard drive.
(from includes/templates/template_default/common/ )
Open it to edit using a good text editor, and find:-
Add the line:PHP Code:
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
<li><a href="index.php?main_page=contact_us"></a></li>
So you get:-
SAVE, then ftp the file to:-PHP Code:
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
<li><a href="index.php?main_page=contact_us"></a></li>
includes/templates/YOUR_TEMPLATE/common/
yeah i just did that and nothing changed. should there be an echo line or something?
OOPS
<li><a href="index.php?main_page=contact_us"></a></li>
should be:
<li><a href="index.php?main_page=contact_us">Contact us</a></li>
It's generally not a good idea to Hard Code the core files like this, but for small "edits" that can be saved in over-rides folders, it does no harm.
Remember, other hyperlinks also appear in the header bar (shopping cart, checkout, My Account) so do not add too many extra links, otherwise the header may "nudge" onto a new line and upset your layout styles.
yeah i learned that hte hard way lol
I want to bypass the category in the header.
anyone know how to add an image on the header? each time i add image code it shows up blank on the page.
Are you talking about the navigation header bar? If so, you configure the image reference in the stylesheet.
#navMainWrapper {
background-image: url(../images/YOUR-IMAGE.jpg);
}
The image must be the same dimensions as the navbar - particularly height.
This image is placed in the images folder of your TEMPLATE - not the main images folder.
Bookmarks