Thread: Menu change

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Aug 2005
    Posts
    75
    Plugin Contributions
    0

    Default Menu change

    Hi

    On the top menu with Home,LogIn, etc etc how do I add an extra link.

    Reason

    We run the shop in a sub domain and of course the home button is actually the shop home page. What we intend to do is rename the current "home" link to "Shop home" and the sites homepage to "home"

    Search has not led us to an answer at this time on how to add this in.

    Thanks folks

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Menu change

    You will want to change the define for HEADER_TITLE_CATALOG from 'Home' to 'Shop Home':
    /includes/languages/english/your_template/header.php

    Line #15 : define('HEADER_TITLE_CATALOG', 'Home');

    and probably add a define for site home:
    /includes/languages/english/your_template/header.php

    define('HEADER_TITLE_SITE', 'Home');

    Then you can modify the link code in /includes/templates/your_template/common/tpl_header.php.

    You can hard-code the url, or use an ez-page external link to lead to it.
    Find this:
    PHP Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    and add a line similar to this
    PHP Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' zen_ez_pages_link(23) . '">'?><?php echo HEADER_TITLE_SITE?></a></li>
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>

  3. #3
    Join Date
    Aug 2005
    Posts
    75
    Plugin Contributions
    0

    Default Re: Menu change

    Perfect thank you

  4. #4
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Menu change

    Got a little lost somewhere in here...

    I also added a link to the top nav bar (tpl_header), but this link is echoed in the footer and I don't want it to be.

    Code:
    <div id="navMain">
        <ul class="back">
        <li><a href="http://MYSITE.com/">Home</a></li>
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    But I don't want this same link in the footer (tpl_footer). If I comment out the code below this works except I get a leading "::" in the footer which indicates to me I clearly did something wrong. I don't have any EZPage enabled for this link in the footer. I think it's also likely this is the result of something I did earlier but can't recall.
    Code:
    <!--bof-navigation display -->
    <div id="navSuppWrapper">
    <div id="navSupp">
    <ul>
    <!--comment out link to home -->
    <!-- <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG. '">'; ?>//<?php echo HEADER_TITLE_CATALOG; ?></a></li> --->
    I'm still not an expert at this, but hopefully my questions/posts are getting more intelligent! Thanks for the great forum support.

  5. #5
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Menu change

    Anyone able to get me pointed on the right direction with the extra :: in my footer?

  6. #6
    Join Date
    Feb 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Menu change

    Quote Originally Posted by gjh42 View Post
    You will want to change the define for HEADER_TITLE_CATALOG from 'Home' to 'Shop Home':
    /includes/languages/english/your_template/header.php

    Line #15 : define('HEADER_TITLE_CATALOG', 'Home');

    and probably add a define for site home:
    /includes/languages/english/your_template/header.php

    define('HEADER_TITLE_SITE', 'Home');

    Then you can modify the link code in /includes/templates/your_template/common/tpl_header.php.

    You can hard-code the url, or use an ez-page external link to lead to it.
    Find this:
    PHP Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    and add a line similar to this
    PHP Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' zen_ez_pages_link(23) . '">'?><?php echo HEADER_TITLE_SITE?></a></li>
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    Followed this info..

    Now the home page leads me to "index.php?main_page=index"

    Trying to figure out where i go to revise the main_page to be my primary website as opposed to the index of proshop.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Menu change

    Did you set up an ez-page external link pointing to your site home?

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Menu change

    Tools > EZ-Pages > "new file" button >
    at the bottom, enter your url in "External Link URL:"

  9. #9
    Join Date
    Mar 2008
    Posts
    64
    Plugin Contributions
    0

    Default Re: Menu change

    Help! I was able to accomplish this, but in doing so I lost my header image!! What happened??

    www.flippee.com/zencart

    Thanks!

  10. #10
    Join Date
    Mar 2008
    Posts
    64
    Plugin Contributions
    0

    Default Re: Menu change

    Found it!! Thanks anyway!

    Glenn - you're posts are always well explained and helpful! Thank you!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Easy way to edit header/top menu, footer menu, and sidebar menu?
    By templar2 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 30 Jun 2009, 11:14 AM
  2. How change the Menu
    By cccdigital in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jan 2009, 10:57 PM
  3. Drop down menu - change colour?
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Dec 2007, 05:16 PM
  4. Change the lower menu
    By Timeout in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Jun 2006, 06:36 PM

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