Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Home & Log in URL in tpl_header.php

Home & Log in URL in tpl_header.php

Locked

Views: 1,900

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Oct 2006, 11:03 PM
#1
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Home & Log in URL in tpl_header.php

i want to change my uppermost home & log in link appereance to a button image.. id searched my tpl_header.php & didnt found the HOME link so i can create the changes. i have lot of difficulties understanding the PHP code rather than **HTML **code..:wacko:

need help on the location..!!

17 Oct 2006, 11:37 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Home & Log in URL in tpl_header.php

Here's the code:

   <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> /* This is the "HOME" link */

<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li> /* This is the "LOG OFF" link*/
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li> /* This is the "MY ACCOUNT" link 
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li> /* This is the "LOGIN" link */
<?php } } ?>
17 Oct 2006, 11:39 PM
#3
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Home & Log in URL in tpl_header.php

thanks a lot clyde...ill try to work on it now

17 Oct 2006, 11:52 PM
#4
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Home & Log in URL in tpl_header.php

im having trouble with the appereance of my **Log in **button ive tried to create.. am i done wrong with my PHP code i just modified..??

<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?><IMG SRC="http://mens-designer-jackets.com/myzen/images/moto_leather_04.jpg" WIDTH=74 HEIGHT=43 border="0"></a></li>

:lookaroun

18 Oct 2006, 4:32 AM
#5
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Home & Log in URL in tpl_header.php

ok..i think i just get rid of the Log in text link which happened to appear with my button image.. but now as the image for my link appear, the wider my navMainWrapper becomes.. how to make it fits the image size..?