• Resolved ysticeri

    (@duckdagobert)


    Hey,

    amazing plugin so far πŸ™‚
    I saw that you set src = null (which does actually make sense) unfortunately google will not index any picture then.
    I did extensive testing in Chrome and found out that adding the pictures url as a src still shows the correct x1 or x2 not regarding the src – so probably you should change that.

    The other thing I wanted to ask: for thumbnail hover scripts its important to get the image url often taken from the parent of the img. Is there any fast way to get src=”imgurl, retinaurl” in a woocommerce file?
    Also would picturefill still work when I just edit the srcset of the product picture with jquery?

    https://wordpress.org/plugins/wp-retina-2x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hello,

    Yes but I think the problem is that for Retina the images will be loaded twice. Can you confirm that? I was thinking of adding an option to keep the src, or maybe it could also be a idea to use a thumbnail (if available) in the src.

    In your PHP scripts (woocommerce included), you can call the function wr2x_get_retina( $img ). Give it the URL of the normal image and it will give you back the retina, or null if it is not available.

    About your third question I have no idea, it really depends on how works the JS script (which is not made by me). I am not sure it would work though, I don’t think they have listeners on that.

    Plugin Author Jordy Meow

    (@tigroumeow)

    I added an option for that, but only in the Pro version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug: src = null – no google indexing & a question’ is closed to new replies.