Re: Image Handler 2 Support
Quote:
Originally Posted by
blackhalo
Thank you testuser...
I've been looking for something like Web Developer tools for Firefox...AMAZING!!
I have one IH2 problem though, it's pretty serious...
where can I find the logic that generates the <img> with the "ALT" and "TITLE" tags?
Why?
I sell t-shirts...every product has the word "t-shirt" in the name.
So if I've got 100 t-shirt designs on my home page, that immediately turns into 500 instances of the word t-shirt on one page!!
Between the href's for both the product image and the text below it,
the visible text within the link, then the auto-generated ALT and TITLE tags...
No sir, I don't like it...(Ren & Stimpy anyone?)
So how can I remove/stop the "TITLE" tag from generating with the images?
I'm semi-familiar with the guts of ZenCart, I just need to know where to find the logic that's generating this tag...which file?
Thank you!!
Personally I don't like to edit core files, but here's what you'd need to do:
Open
Quote:
/includes/functions/html_output.php
Replace line 200 - 202 with the following:
Code:
/*if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}*/
Now save this file as html_output.php.bak and also html_output.php, this will preserve your change in the instance you do an upgrade (a direct upgrade will overwrite your html_output.php file - then work your changes back into that file using the .bak file)
Also, at line 198 is your alt tag as well ... You can remove that if you'd like.
I'd personally suggest removing the word T-Shirt from all your products though as the title tag is pretty significant for SEO purposes, can be a task with a bunch of products though. But fully understand your point with the weight of "T-Shirt."
Re: Image Handler 2 Support
I fixed the hover problem by reinstalling zencart but I still can't get the additional image working, can someone tell me what I should check or turn on?
Re: Image Handler 2 Support
Quote:
Originally Posted by
Momokui
I fixed the hover problem by reinstalling zencart but I still can't get the additional image working, can someone tell me what I should check or turn on?
Are you using a custom template? The additional image should show once added.
Do you have a link?
Re: Image Handler 2 Support
Yes, I'm making custom template.
I just don't get it, I installed 3 zencart to get it working, 1st one not working because I forgot to add prefex "jscript__" to custom js file, and after I added still not working... installed the 2nd zencart and still in localhost, copied over the template from1st to 2nd, hover worked but additional image did not, at least there was improvement. Installed 3rd one w/o demo store in hosting account, ftp the same template files to the account and then added 1 product, everything working! :shocking::shocking::shocking:
Thanks to testuser for reminding me about javascript.
Re: Image Handler 2 Support
Quote:
Originally Posted by
testuser
Personally I don't like to edit core files, but here's what you'd need to do:
-----
I'd personally suggest removing the word T-Shirt from all your products though as the title tag is pretty significant for SEO purposes, can be a task with a bunch of products though. But fully understand your point with the weight of "T-Shirt."
Thanks for the help and all the heads-up...
I'll shoot a donation over to you this afternoon.
FYI, I'm keeping the ALT tag (and varying my spelling of 't-shirt')...
alt holds a little more weight because it's a usability tool, it shows up when an image doesn't...
this potentially helps the surfer, and that's all that Google really wants you to do. Build for the customer.
Using both tags is great if you keep your products to a "normal" amount...
but t-shirt stores (I'm discovering) don't play by the rules...lotsa customization!
Anyway, thanks again... :smile:
Re: Image Handler 2 Support
Quote:
Originally Posted by
Momokui
Yes, I'm making custom template.
I just don't get it, I installed 3 zencart to get it working, 1st one not working because I forgot to add prefex "jscript__" to custom js file, and after I added still not working... installed the 2nd zencart and still in localhost, copied over the template from1st to 2nd, hover worked but additional image did not, at least there was improvement. Installed 3rd one w/o demo store in hosting account, ftp the same template files to the account and then added 1 product, everything working! :shocking::shocking::shocking:
Thanks to testuser for reminding me about javascript.
Quote:
Originally Posted by
blackhalo
Thanks for the help and all the heads-up...
I'll shoot a donation over to you this afternoon.
FYI, I'm keeping the ALT tag (and varying my spelling of 't-shirt')...
alt holds a little more weight because it's a usability tool, it shows up when an image doesn't...
this potentially helps the surfer, and that's all that Google really wants you to do. Build for the customer.
Using both tags is great if you keep your products to a "normal" amount...
but t-shirt stores (I'm discovering) don't play by the rules...lotsa customization!
Anyway, thanks again... :smile:
Your welcome ...
Re: Image Handler 2 Support
Hi,
My popup hover image seems to show up behing the taskbar (a portion of the image is behind the taskbar)
Can someone please let me know what I need to do to fix this.
www.vitalwares.com
Re: Image Handler 2 Support
Quote:
Originally Posted by
vitalwares
Hi,
My popup hover image seems to show up behing the taskbar (a portion of the image is behind the taskbar)
Can someone please let me know what I need to do to fix this.
www.vitalwares.com
Reduce the top and bottom padding in the style_imagehover.css file.
Re: Image Handler 2 Support
Quote:
Originally Posted by
testuser
Reduce the top and bottom padding in the style_imagehover.css file.
That did the trick perfectly! Thank you so much.
Re: Image Handler 2 Support
Quote:
Originally Posted by
vitalwares
That did the trick perfectly! Thank you so much.
Your welcome oh so much ... haha