| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Optimizing Page Title Text | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() From what I've read, extra spaces or non-displaying characters (like CR or LF) make search engines unhappy, so to speak. I've noticed that x-cart seems to put some of those in there however.
The following smarty 2.5.x code will fix that problem. Add to customer/home.tpl Code:
Walt |
|||||||
#2
|
|||||||
|
|||||||
![]() Hey, thanks for posting that code Walt. Am I the only one in four months to make use of it?
![]() BTW, if anyone else has tried this, do you also get alot of spaces generated in the output source code between the </head> and <title> tags? I do, is this going to be of a problem to spiders? |
|||||||
#3
|
|||||||
|
|||||||
![]() Hmmmm... I wonder if this works? Looks good, little bit scared to try it, but always like to improve.
![]() |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Or you could just take your existing code for the title tag and add the {strip} tag. This tag strips out all the extra line feeds in HTML.
Example from 3.5.x: Code:
|
|||||||||
#5
|
|||||||
|
|||||||
![]() telafirma,
your code causes {/strip} to be displayed on the home page, I tried moving it before </title> but then it causes {/strip} to be added onto the title of the page ie X-cart Books {/strip} is there an easier way or did i read the code wrong? |
|||||||
#6
|
|||||||||
|
|||||||||
![]() oops... my fault. I failed to take into account the {strip} tags that were already in the code.
Try this: Code:
|
|||||||||
#7
|
|||||||
|
|||||||
![]() eh xa lent, thanks telafirma, worked beautifully
|
|||||||
#8
|
|||||||
|
|||||||
![]() TelaFirma: Thanks for taking the time to post! worked excellent. It was high on my list of 'mods' that shockingly are not included in the X-Cart package.
Matt Curtek Systems - http://www.curtek.com |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Very handy, thanks for sharing.
|
|||||||||
#10
|
|||||||
|
|||||||
![]() I'm sorry to ask, but for the very lay shop owners amongst us, can you just briefly explain in plain language what this bit of code achieves.
It's got pretty good reviews, so I'm sure it's a worthy mod to adopt, but it would greatly help if I could understand exactly what effect it has on the store's appearance or workings. Thanks in advance,
__________________
Risky V3.5.3 With Options-based inventory tracking mod, by X-cart |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|