Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default 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..

    need help on the location..!!
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Home & Log in URL in tpl_header.php

    Here's the code:
    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 } } ?>

  3. #3
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: Home & Log in URL in tpl_header.php

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

  4. #4
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default 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>


  5. #5
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default 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..?

 

 

Similar Threads

  1. HOME & LOG OUT button in homepage
    By missymissy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Apr 2014, 02:58 PM
  2. New products on home page - where's the php code inside tpl_header?
    By Thannaree in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Jun 2011, 11:16 AM
  3. Home page disappeared after editting tpl_header.php, please help
    By newproduct4you in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Apr 2010, 02:13 AM
  4. Home & Log In Link Font Size
    By JannyM in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Feb 2009, 02:37 PM
  5. HOME & LOG IN links (top right)
    By Agent_KGB in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Feb 2009, 03:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR