![]() |
is there a better way to do this?
I have the ReBOOT template installed on my www.uscandleco.com site. I ran the w3c validator on my home page and it gave me around 40 errors. One of them is this
Quote:
the thumbnail template is this... Code:
{strip} Is the if statement not quite right? I have duplicate width and heights on each thumbnail image throughout my entire site. It seems as if the one set is for the spacer.gif and the other is for the actual thumbnail. Any suggestions? |
Re: is there a better way to do this?
Looks to me like these lines:
Code:
{if $image_x ne 0} width="{$image_x}"{/if} Should read: Code:
{if $notlazy} |
Re: is there a better way to do this?
Hi Pete, spacer.gif is the placeholder image for the lazy loader.
In skin/reboot/product_thumbnail.tpl you can replace... Code:
{if !$notlazy} src="{$AltImagesDir}/spacer.gif"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} data-src="{else}src="{/if} Code:
{if !$notlazy} src="{$AltImagesDir}/spacer.gif" data-src="{else}src="{/if} |
Re: is there a better way to do this?
Thanks Jon for the response. Phil, I wasn't sure if it would have affected anything negatively if I changed the line to what your suggestion was. That was going to be the first thing I tried but wanted to ask first.
Thanks. |
Re: is there a better way to do this?
phil, just sent you a pm
|
All times are GMT -8. The time now is 05:15 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.