Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 80
  1. #31
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: Change "Home" link?

    I'm assuming you have a page called index.php that lives at root level and an index.php in the /shop/ folder.

    1, BACK-UP EVERY FILE
    2, Rename the main home page to home.php
    3, add the following to the top of the root level htaccess file:
    DirectoryIndex home.php

    4, Move everything out of the /shop folder and place it at root level
    5, Via your control panel access the 2 config files and change the references to root level so you'll have something like:

    define('HTTP_SERVER', 'http://www.domain.com');
    define('HTTPS_SERVER', 'https://www.domain.com');
    define('HTTP_CATALOG_SERVER', 'http://www.domain.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.domain.com');

    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    in effect taking out shop:
    define('DIR_WS_CATALOG', 'shop/'); etc

    Do the same with the include/admin if needed.

    This will then sort out the reference problem and be better for SEs accessing the site.

  2. #32
    Join Date
    Jun 2008
    Posts
    18
    Plugin Contributions
    0

    help question Home Link

    Ok Ive just got a quick question,

    I have my zen cart linked off my home page.

    Zen cart has a "Home" link up the top left hand corner of all pages next to "Login" that links back to the main zencart homepage. I would like to change it to link back to my homepage.

    I cant seem to find where I can change it.

    If someone could give me a hand it would be greatly apreaciated.

    Thanks

    Luke

  3. #33
    Join Date
    Jun 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Home Link

    http://www.zen-cart.com/forum/showthread.php?t=115123

    Reading this at the moment, But there must be a easier way then moving all the files.

  4. #34
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: Change "Home" link?

    Well, a client just asked me to do this, and I found an excellent post on how to do this without messing with the configure files:

    http://www.zen-cart.com/forum/showpo...3&postcount=20

    In a nutshell, here is the answer:

    Make copies of these files for editing:
    includes/templates/template_default/common/tpl_header
    includes/templates/template_default/common/tpl_footer
    (or if you've already edited them get them from your custom overrides folder)

    In both files, change this:
    . HTTP_SERVER . DIR_WS_CATALOG .
    to this:
    . HTTP_SERVER .
    (pay attention to the dots!)
    There is only one instance in tpl_footer; there are two in tpl_header.

  5. #35
    Join Date
    Jun 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    Quote Originally Posted by alicia1234 View Post
    After reading through this post and many others, I achieved what I wanted. Here's a summary so it's all in one place:

    What I wanted:
    "Home" in navigation bar, footer and breadcrumbs to point to www.mysite.com, not to www.mysite.com/store

    Compromise:
    I changed it for navigation bar and footer, but you can't change it in breadcrumbs without editing core files. So instead, I removed the 'home' link from breadcrumbs.

    How to do it:
    (Assumes you are familiar with the overrides system!)

    Make copies of these files for editing:
    includes/templates/template_default/common/tpl_header
    includes/templates/template_default/common/tpl_footer
    (or if you've already edited them get them from your custom overrides folder)

    In both files, change this:
    . HTTP_SERVER . DIR_WS_CATALOG .
    to this:
    . HTTP_SERVER .
    (pay attention to the dots!)
    There is only one instance in tpl_footer; there are two in tpl_header.

    Upload the edited files to your custom overrides folder.
    That takes care of navigation bar and footer.

    AHHHH just worked it out didnt realise I hadnt made a common folder in my override.
    Last edited by mothersanddaughters; 9 Dec 2008 at 04:12 AM.

  6. #36
    Join Date
    Jun 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Home Link

    I figured it out cheers.

  7. #37
    Join Date
    Jun 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Change "Home" link?

    Quote Originally Posted by bobdog View Post
    Well, a client just asked me to do this, and I found an excellent post on how to do this without messing with the configure files:

    http://www.zen-cart.com/forum/showpo...3&postcount=20

    In a nutshell, here is the answer:

    Make copies of these files for editing:
    includes/templates/template_default/common/tpl_header
    includes/templates/template_default/common/tpl_footer
    (or if you've already edited them get them from your custom overrides folder)

    In both files, change this:
    . HTTP_SERVER . DIR_WS_CATALOG .
    to this:
    . HTTP_SERVER .
    (pay attention to the dots!)
    There is only one instance in tpl_footer; there are two in tpl_header.

    Yep I just used this and if worked perfectly. Your just unable to change the breadcrumbs home link, witch didnt worry me but can be removed.

  8. #38
    Join Date
    Dec 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    Ok, I followed the instructions and created a common folder inside my custom template. I made the changes to the header and footer and uploaded to the common folder. Now when I refresh the entire header and footer disappear. I removed the custom header and footer from my common folder and everything is back to normal but still not directing to the root of my website. Anyone run across this before?

    Thanks in advance.

  9. #39
    Join Date
    Nov 2008
    Location
    Massachusetts
    Posts
    163
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    Can you post the contents of your customized tpl_header.php and tpl_footer.php files?

  10. #40
    Join Date
    Dec 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    This is my Header.

    <?php

    /**

    * Common Template - tpl_header.php

    *

    * this file can be copied to /templates/your_template_dir/pagename<br />

    * example: to override the privacy page<br />

    * make a directory /templates/my_template/privacy<br />

    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />

    * to override the global settings and turn off the footer un-comment the following line:<br />

    * <br />

    * $flag_disable_header = true;<br />

    *

    * @package templateSystem

    * @copyright Copyright 2003-2006 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $

    */

    ?>



    <?php

    // Display all header alerts via messageStack:

    if ($messageStack->size('header') > 0) {

    echo $messageStack->output('header');

    }

    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {

    echo htmlspecialchars(urldecode($_GET['error_message']));

    }

    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {

    echo htmlspecialchars($_GET['info_message']);

    } else {



    }

    ?>





    <!--bof-header logo and navigation display-->

    <?php

    if (!isset($flag_disable_header) || !$flag_disable_header) {

    ?>



    <div id="headerWrapper">

    <!--bof-navigation display-->

    <div id="navMainWrapper">

    <div id="navMain">

    <ul class="back">

    <li><?php echo '<a href="' . HTTP_SERVER . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>

    <?php if ($_SESSION['customer_id']) { ?>

    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>

    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

    <?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 } } ?>



    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>

    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>

    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>

    <?php }?>

    </ul>

    </div>

    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>

    <br class="clearBoth" />

    </div>

    <!--eof-navigation display-->



    <!--bof-branding display-->

    <div id="logoWrapper">

    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>

    <div id="taglineWrapper">

    <?php

    if (HEADER_SALES_TEXT != '') {

    ?>

    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>

    <?php

    }

    ?>

    <?php

    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {

    if ($banner->RecordCount() > 0) {

    ?>

    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>

    <?php

    }

    }

    ?>

    </div>

    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>

    </div>

    <br class="clearBoth" />

    <!--eof-branding display-->



    <!--eof-header logo and navigation display-->



    <!--bof-optional categories tabs navigation display-->

    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>

    <!--eof-optional categories tabs navigation display-->



    <!--bof-header ezpage links-->

    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>

    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>

    <?php } ?>

    <!--eof-header ezpage links-->

    </div>

    <?php } ?>

 

 
Page 4 of 8 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. How To ? change Home Link
    By BigJon in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2011, 05:00 PM
  2. How do I change the name of the home link on my main page.
    By MountainWilliam in forum General Questions
    Replies: 1
    Last Post: 20 Dec 2010, 03:17 AM
  3. How do I change link locations for Home in header?
    By newbie73 in forum Basic Configuration
    Replies: 15
    Last Post: 15 Feb 2008, 01:05 AM
  4. How To Change This Home Link???
    By AvieLF in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2006, 04:44 AM

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