Software
Houzz Logo Print
schiaramonte

save to idea book button on wordpress website

11 years ago
last modified: 11 years ago

In a wordpress site I add a houzz save to idea book button and when it opens the pictures do not appear. If I set it to a specific img only that one shows up when you click save no matter what img in the gallery you are one and I need it to work on any img. I am using the following code part was from houzz. <a http://clemenspantuso.com/?project=italianate-riverside-home-chagrin-falls-ohio>; Clemens Pantuso</a>


< div c la ss=" houzz-share-button " >

<a cla ss="houzz-sh are-button" data-url="http://www .houzz.com/pro/rpantuso/clemens-pantuso-architecture"; data-hzid="34137" data-loc ale="en-US" data-img="$("a.ho uzz-sha re-button").attr("data-img", src);"

data-title="CLE MENS PA NTUSO Archite cture" dat a-d esc="" data-cat ego ry="" data-sh o wcount="0" hre f="https: //www.h ouzz.com" >Houzz<scri p t>

$(document).ready(function() {

var data-img = $("ul.slides li:first-child img"); // grab the image

var src = $(img).attr("src"); // get the img source

$("a.houzz-share-button").attr("data-img", src); // set in link

});

</scrip>