Results 1 to 4 of 4

Change Header Link

This is a discussion on Change Header Link within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; This is a small (and I'm sure stupid) question that I can't seem to find the answer for in the ...

      
  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    61
    Rep Power
    0


    Default Change Header Link

    This is a small (and I'm sure stupid) question that I can't seem to find the answer for in the forum. All I'm trying to do is change the link that's associated with the main page header image. This is also the same link that's attached to the "Top" menu item next to "Catalog" (right top side menu bar). I would like it to go to a different url from what was assigned in the initial setup of the application.

    I just putting together a test store for the first time with this application...

    Thanks in advance...

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default RE: Change Header Link

    1) remove the "top" from the breadcrumb. It confuses people.
    2) the BTS uses main_page.tpl.php in the selected template directory for the header
    3) look for this
    Code:
    <A HREF="<?php echo tep_href_link(FILENAME_DEFAULT);?>
    4) either
    a) create a new define in /includes/application_top.php or /includes/filenames.php and replace FILENAME_DEFAULT with the new define
    b) just replace FILENAME_DEFAULT in the code with a hardcoded location.

    As for "why #1?" generally the breadcrumb contains Top -> Catalog -> etc... and Top and Catalog both generally point to the same place. In those cases Top is redundant and confusing to the end user.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    61
    Rep Power
    0


    Default New Link in Header

    I had a hunch I wasn't sounding too clear. I would like to replace the "Top" with Home Page or something like that. I would like a link back to my regular old HTML website. I entered the wrong URL when I set the things up.

    Thanks again...

  4. #4
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default RE: New Link in Header

    a) create a new define in /includes/application_top.php or /includes/filenames.php and replace FILENAME_DEFAULT with the new define
    b) just replace FILENAME_DEFAULT in the code with a hardcoded location.

    and if you want to keep the "Top" in the breadcrumb, do the same "define" change there.
    (i.e.: you create a define called ROOT_TOP and replace those two instances with the new ROOT_TOP).
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

Similar Threads

  1. how do i change the TOP link to link to a different page
    By jcomputers in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 07-23-2006, 01:45 PM
  2. how do i change the home link to link to somewhere else?
    By jcomputers in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 07-22-2006, 10:01 PM
  3. How can I ad a link to header.php
    By ozstar in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 12-04-2005, 03:50 PM
  4. Header link and nav bar
    By kellycog in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 07-07-2004, 10:45 PM
  5. category link generates site keywords in header.
    By bushman in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 09-04-2003, 08:44 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
  •