Hello is there anyway to make it so that the images in the media gallery attached to the Nivo Slider do not show up until after the page is loaded and the slider is render to cycle through the images? Currently I have 4 images all being displayed prior to the page executing the Javascript associated with Nivo Slider you can see here on the top right of the page promo banner area;
http://www.ronpaulcountry.com/launch
edit: Thanks for providing this awesome module! The best looking one I've seen. :)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | hide-images-preloading-1386248-1.patch | 442 bytes | peronas |
Comments
Comment #1
peronas commentedHi orenbus, glad you like the module, in terms of the images showing before the slider is fully loaded, I've attached a patch against the latest dev version that will hopefully resolve the issue.
If you aren't using the dev version of the module the change is minimal and can easily be applied to the latest official release version by adding class="nivoSlider" to the inner div in media-nivo-slider-block.tpl.php so it's as follows:
<div id="<?php echo $slider_id; ?>-media-nivo-slider" class="nivoSlider">This should make the images pick up the slider styles and hide the extra images from the get go rather than waiting for the plugin to load and apply the class.
Let me know if this resolves your issue!
Comment #2
orenbus commentedThank you so much! That fixed the problem. :)
Comment #3
peronas commentedClosing, fix committed to latest stable release.
Comment #3.0
peronas commentedadditional note mentioning this module rocks