![]() |
changing .home.php
I know a completely noob questions but still getting my head around editing this script
How do i change so that my logo and breadcrumb link to domain.com/ instead of domain.com/home.php? Thanks :D/ |
Re: changing .home.php
Welcome to the X-Cart forums! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:
http://forum.x-cart.com/showthread.php?t=23970 Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your questions correctly. Thanks! :) |
Re: changing .home.php
Thanks for the the link ill check that out now .. updated my sig also
|
Re: changing .home.php
1) Logo is placed in the skin1/customer/head.tpl
just change href for the hyperlink from "home.php" to "/" 2) In skin1/customer/bread_crumbs.tpl replace the line Code:
<a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a> Code:
<a href="{if $smarty.foreach.location.first}{$l.1|replace:"home.php":""}{else}{$l.1|amp}{/if}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a> |
Re: changing .home.php
thanks very much Victor. That has sorted it!
|
Re: changing .home.php
Quote:
Thanks for the good info Victor. I am trying to do the same thing but with a slight twist. How would you go about linking your bread crumb to a site that is not domain.com/ but a domain separate from your cart itself or possibly linking to another page within the cart itself? t.i.a chris |
Re: changing .home.php
Quote:
just replace the code mentioned above with Code:
<a href="{if $smarty.foreach.location.first}http://put.link.here{else}{$l.1|amp}{/if}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a> |
Re: changing .home.php
Victor, that solution worked excellent. Thanks for the help!
|
Re: changing .home.php
what about in version 4.4.3 gold
I have examined bread_crumbs.tpl in customer folder under specific skin type, but could not figure out how to change link from home.php to point to domain name. Thank you, |
Re: changing .home.php
For version 4.4.3 gold: It is
Replace <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|amp}{/if}</a> with <a href="{if $smarty.foreach.location.first}http://put.link.here{else}{$l.1|amp}{/if}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|amp}{/if}</a> (..and thanks to Victor D for original post!) |
All times are GMT -8. The time now is 09:27 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.