New Zenner
- Join Date:
- Feb 2011
- Posts:
- 12
- Plugin Contributions:
- 0
Double home page link in footer
Hi Everyone,
I have a double home page link in the footer of my Zen Cart website. Any ideas how to get rid of it?
Thanks
Views: 796
New Zenner
Hi Everyone,
I have a double home page link in the footer of my Zen Cart website. Any ideas how to get rid of it?
Thanks
New Zenner
I was told that you have to modify the categories sidebox template, does anybody know the file name or where it is located? Thanks
Zen Follower
In your admin>tools>dev tool kit
that will help you locate any file:smile:
New Zenner
Thanks for the link :-) However used and still can't figure out how to get rid of the double home page links in the footer. Can't see anything that would do it under Categories.php under sidebox or tpl_footer.php under common?
Zen Follower
Its called "menu" and its in your common> footer:smile:
prob:unsure:
Black Belt
The first Home link will be in /includes/templates/your_template/templates/tpl_footer.php.```php
echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'. HEADER_TITLE_CATALOG . '</a>';
New Zenner
Hi Gjh42.
Thanks for the reply and information, I located the file under
/includes/templates/your_template/common/tpl_footer.php.
And have taken some code and shown below:
<!-- ========== MENU ========== --> <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>"><?php echo HEADER_TITLE_CATALOG; ?></a><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
<?php } ?>
<!-- ========================== -->
I than deleted the following
<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
Seems to have got ridden of the first homepage word link in the footer, but now stuck with the "::" in front of the remaining home page link? did I delete the right line? or do i need to delete more somewhere?
Thanks for your help
Black Belt
tpl_ez_pages_bar_footer.php puts the :: before each ez-page link. Eliminating the first one will require writing a bit of new PHP.
The easiest way to get rid of one of the home links would be to leave tpl_footer.php as is, and delete the "Home Page" ez-page in Tools > EZ-Pages.
Tell staff why this post should be reviewed.