Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Mar 2011
    Posts
    212
    Thanks
    10
    Thanked 1 Time in 1 Post

    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?

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,949
    Thanks
    9
    Thanked 724 Times in 718 Posts
    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.

  • #3
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    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

  • #4
    Regular Coder
    Join Date
    Mar 2011
    Posts
    212
    Thanks
    10
    Thanked 1 Time in 1 Post
    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?

  • #5
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,949
    Thanks
    9
    Thanked 724 Times in 718 Posts
    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.
    Last edited by SB65; 10-02-2012 at 04:51 PM.

  • #6
    Regular Coder
    Join Date
    Mar 2011
    Posts
    212
    Thanks
    10
    Thanked 1 Time in 1 Post
    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!
    Last edited by lmorales; 10-02-2012 at 05:12 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •