CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   trying to find where image is pulling from on wordpress site (http://www.codingforums.com/showthread.php?t=274942)

lmorales 10-02-2012 04:10 PM

trying to find where image is pulling from on wordpress site
 
I was asked to fix a problem with a site called cfferns.com, when you go to a particular fern ( i.e the crocodile fern on the front page) and click on the image thumbnail, the larger image doesnt load. Now I know that in a normal page the image path would probably be wrong or something, but I cant find where the images are in this. Am I missing something?

SB65 10-02-2012 04:28 PM

Well, the image on that page is

Code:

http://cfferns.com/wp-content/uploads/wpsc/product_images/Rabbit Foot (White) - Humata tyermannii 2.jpg
I suspect the problem with your lightbox is either the forward slash in your rel attribute, or possibly the spaces in the path to the image:

Code:

<a href="http://cfferns.com/wp-content/uploads/wpsc/product_images
/Rabbit Foot (White) - Humata tyermannii 2.jpg" class="thickbox preview_link"
rel="Rabbit_Foot_(White)/Humata_tyermannii">

If you look at the console for your page you'll see it's choking on the rel attribute, so I'd start with that.

DanInMa 10-02-2012 04:30 PM

the tumbnail image and the large image are one and the same file, so the file itself exists, you appear to have an issue with thickbox plugin itself

^ -- what he said ;)

lmorales 10-02-2012 04:38 PM

How do I access that part of the code though? Im looking in the wordpress backend and dont see it? Am I just being really dumb?

SB65 10-02-2012 04:48 PM

I think the easiest thing is just to remove the / from the name of the product. Looks like this is running WP eCommerce - and that will be sucking in the name and using that for the rel attribute on that page.

EDIT: Also looks like this is a problem on many other products as well. I'd suggest replacing the / with a - instead.

EDIT AGAIN: This page, without a slash in the name, works: http://cfferns.com/products-page/fer...tiquum-leslie/ so looks like that's the problem alright.

lmorales 10-02-2012 05:09 PM

I just tried doing that, and so far it didnt work, in wordpress is there a way to get into the nitty gritty code rather than just this php and shortcode?

wait no, that worked! thanks!


All times are GMT +1. The time now is 05:57 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.