laurentsch wrote:Please, could you give the URL of your gallery, or if it isn't published, give its code + the code given by FB for the "like" button and so, I suppose that I will be able to give you a code which combines well both.
Thank you very much for responding!
Perhaps you could highlight where you put the FB code inside my index.html code, so that I can be clear on where to insert it on my other Gallery's.
FYI I am working in Dreamweaver, but I'm NO Pro and not very familiar with code at all, I just figure it out as I go!
Thanks, Michael
The FB code is 2 part.
FB say's that Part 1 is supposed to be placed after the opening body tag
PART 1
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
FB say's that Part 2 should be placed wherever you want it to appear on your page.
Although I believe this part is different with Juicebox
PART 2
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
Here is the code for my index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Asher Edelman Cover Story</title>
<meta charset="utf-8" />
<meta name="viewport" id="jb-viewport" content="minimal-ui" />
<meta name="description" content="" />
<!-- START OPEN GRAPH TAGS-->
<meta property="og:title" content="Asher Edelman Cover Story" />
<meta property="og:type" content="website" />
<meta property="og:url" content="" />
<meta property="og:image" content="" />
<meta property="og:description" content="" />
<!-- END OPEN GRAPH TAGS-->
<style type="text/css">
body {
margin: 0px;
}
</style>
</head>
<body>
<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
new juicebox({
containerId: 'juicebox-container',
galleryWidth: '100%',
galleryHeight: '100%',
backgroundColor: 'rgba(255,255,255,1)'
});
</script>
<div id="juicebox-container">
<!-- Image gallery content for non-javascript devices -->
<noscript>
<h1>Asher Edelman Cover Story</h1>
<p></p>
<p><img src="images/52d3f9f0cdc87.jpg" title="" alt="" /><br> </p>
<p><img src="images/IMG_3619.jpg" title="" alt="" /><br> </p>
<p><img src="images/IMG_3564.jpg" title="" alt="" /><br> </p>
<p><img src="images/IMG_3642.jpg" title="" alt="" /><br> </p>
<p><img src="images/Asher_1.jpg" title="" alt="" /><br> </p>
<p><img src="images/Asher_2.jpg" title="" alt="" /><br> </p>
<p><img src="images/Asher_3.jpg" title="" alt="" /><br> </p>
</noscript>
</div>