X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   breadcrumb links (https://forum.x-cart.com/showthread.php?t=66653)

keystone 04-16-2013 07:04 AM

breadcrumb links
 
I was wondering where I go to change this line
Quote:

<div id="location">
<a href="/" class="bread-crumb">Home</a>

to
Quote:

<div id="location">
<a href="www.uscandleco.com" class="bread-crumb">Home</a>


I wanna drop the "/" and use "www.uscandleco.com" instead.
Thanks.

ADDISON 04-16-2013 07:11 AM

Re: breadcrumb links
 
If you are using Windows you can use Search tool (F3). Just search for all files (*.*) in a directory containing your string. If you want only tpl, just use this sequence *.tpl.

I prefer to give you this solution instead of mentioning the right file. You will discover it is a great tip.

PS Do you think is a good idea for SEO to use a domain name in your breadcrumb?

keystone 04-16-2013 07:32 AM

Re: breadcrumb links
 
Hi Addison,
the line am looking for is in a .tpl file but the "home" location is a variable pulled from some where else. I already know what .tpl file the lines of code are from that I posted earlier, that is where I copied the lines from. The "/" is being set somewhere else but I'm not sure where. I am familiar with the search tool, I use it quite a lot. You are correct that it is very handy.

As far as the SEO goes, I'm not sure if it really matters much but I've read a few places that having the url is better so I want to give it a shot.

ADDISON 04-16-2013 10:35 PM

Re: breadcrumb links
 
Search for that variable inside php files. I am using Sublime Text as editor and finding variables inside files is so easy.

PhilJ 04-17-2013 03:19 AM

Re: breadcrumb links
 
skin/common_files/customer/bread_crumbs.tpl

Replace...

Quote:

<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...

Quote:

<a href="{if $l.0|amp eq "Home"}{$http_location}{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>

Though as Addison says, not sure it's advisable.

Having too many links to the homepage is not good for SEO.

Interesting article

keystone 04-17-2013 05:58 AM

Re: breadcrumb links
 
Thanks Phil and Addison. I still haven't decided if I want to make the switch to the URL yet. I do have a few other places that have the absolute url instead of the relative so those may be enough. I'll check out the article you posted, thanks for that.


All times are GMT -8. The time now is 09:52 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.