CSS Image Gallery 2 Support Product Page

Image gallery inside a bootstrap collapsible accordion group

Asked 24 Jun 2015 17:39:39
1
has this question
24 Jun 2015 17:39:39 Howard Sloane posted:
I have inserted an image gallery inside a BS accordion.

When I do this the thumbnails on hover do not show.

Please advise, thanks.

Replies

Replied 24 Jun 2015 20:36:59
24 Jun 2015 20:36:59 Teodor Kuduschiev replied:
Hello,
Please provide a link to your page where we can check this issue...
Replied 25 Jun 2015 13:54:09
25 Jun 2015 13:54:09 Howard Sloane replied:
cohendiamond.com/dev2/indexnew.html

click the more buttons for wedding bands or classic engagement rings to see the gallery
Replied 25 Jun 2015 14:02:51
25 Jun 2015 14:02:51 Teodor Kuduschiev replied:
The problem on your page is caused by the fact that the thumbnails are not uploaded on the server ...
cohendiamond.com/dev2/wbGal/thumbs/ -> nothing here.
Replied 25 Jun 2015 14:07:38
25 Jun 2015 14:07:38 Howard Sloane replied:
yes you're correct. Look at the engagement rings ...
Replied 25 Jun 2015 14:11:55
25 Jun 2015 14:11:55 Howard Sloane replied:
the thumbs are uploaded now for both galleries
Replied 25 Jun 2015 14:22:51
25 Jun 2015 14:22:51 Teodor Kuduschiev replied:
Well, the gallery code on your page is messed up for some reason. It is not how the extension actually creates the code:
<script type="text/javascript">
                    // <![CDATA[
                    jQuery(document).ready(
                        function () {
                            jQuery("#wbGallery1").dmxGallery2({
                                "width": "100%",
                                "thumbWidth": 100,
                                "thumbHeight": 100,
                                "thumbHolderPosition": "bottom",
                                "thumbShowOnHover": true,
                                "captionOpacity": 50,
                                "dataSource": "",
                                "dynSlides": {
                                    "target": ""
                                }
                            });
                        }
                    );
                    // ]]>
                </script>

This should become:
<script type="text/javascript">
  // <![CDATA[
  jQuery(document).ready(
    function () 
		{
       		jQuery("#wbGallery1").dmxGallery2(
	   			{"width": "100%","thumbWidth": 100,"thumbHeight": 100,"thumbHolderPosition": "bottom","thumbShowOnHover": true,"captionOpacity": 50,"dataSource": "","dynSlides": {"target": ""}}
			);
		}
	);
		// ]]>
 </script>
Replied 25 Jun 2015 14:37:23
25 Jun 2015 14:37:23 Howard Sloane replied:
OK. I fixed that but I see no change...


in dmxgallery2.css there are two blocks of code for perfect scrollbar. they look identical. is that normal?

Replied 25 Jun 2015 14:42:59
25 Jun 2015 14:42:59 Teodor Kuduschiev replied:
Please email your indexnew.html page to so we can check it.
Replied 25 Jun 2015 14:43:44
25 Jun 2015 14:43:44 Howard Sloane replied:
ok
Replied 25 Jun 2015 15:14:26
25 Jun 2015 15:14:26 Howard Sloane replied:
Sent just now
Replied 25 Jun 2015 16:26:13
25 Jun 2015 16:26:13 Howard Sloane replied:
also noticed that option to set current slide has no effect
Replied 30 Jun 2015 09:43:52
30 Jun 2015 09:43:52 Howard Sloane replied:
any ideas?
Replied 30 Jun 2015 14:01:00
30 Jun 2015 14:01:00 Howard Sloane replied:
as advised by Miro, I added this:


<script type="text/javascript" src="$('#toggleWB').on('shown.bs.collapse', function () { 
    $('#wbGallery1').dmxGallery2('create');  });"></script>


<script type="text/javascript" src="$('#toggleER').on('shown.bs.collapse', function () { 
    $('#erClassicGalleryGallery').dmxGallery2('create');  });"></script>



<script type="text/javascript" src="$('#toggleERF').on('shown.bs.collapse', function () { 
    $('#erFancyGallery').dmxGallery2('create');  });"></script>



It didn't help.

http://cohendiamond.com/dev2/indexnew.html

Replied 01 Jul 2015 20:03:40
01 Jul 2015 20:03:40 Howard Sloane replied:
So it seems that this extension will not show thumbs within BS accordion/collapsible element even after including js event shown.bs.collapse?

Reply to this topic