"Alt" text keyword hack.
I wanted to make my <img alt="xxx"> text more keyword rich. The default xcart alt text is the product name, but sometimes the product name does not contain any keywords. So, I pasted in a line of code that also includes the current category name (which should be one of your keywords). The new code will display the alt text as:
alt="Category Name Product Name" replace your current "product_thumbnail.tpl" with this code Code:
{if $config.Appearance.show_thumbnails eq "Y"}[img]{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}..{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}[/img]{/if} Now, the search engines will see extra keywords for every product thumbnail on your page! This really saturates your category pages. Piper |
:D Nice job! Haven't implemented yet, but look forward to putting it to use.
Regards, Glen |
Beautiful job! Nicely done. :D
|
I guess this mod was already fixed in the newest version?
My thumbnail tpl has this in it {* $Id: product_thumbnail.tpl,v 1.8.2.1 2003/05/20 13:32:38 svowl Exp $ *} {if $config.Appearance.show_thumbnails eq "Y"}[img]{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}..{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}[/img]{/if} |
Not exactly... the code in this topic is to add the category name to the alt tag as well as the product name. This is a good thing when it comes to the search engines.
|
I wasn't for sure, as alot of people are using the 3.6 or whatever version and I wasn't sure if this was already done in the new version..
thanks, I'll add the code By the way, as were talking about search engines.. as you can see I installed the cart at shop/customer when my site is finished, I will redirect the main page to shop/customer via htacess Will this affect my rankings? I haven't gotten a chance to read up on the search engine forum, but thought I'd ask... |
This will also make people with images turned off hate you :lol:
|
lol because instead of an image it would be like a big line of text?
I don't know anyone that turns their images off these days anyways.. Especially when shopping on the internet.. you got to see what your buying!! |
Quote:
I'll second that |
it's like looking in a playboy with the pictures cut out.. useless.. :D
|
All times are GMT -8. The time now is 06:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.