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. :)

CommentFileSizeAuthor
#1 hide-images-preloading-1386248-1.patch442 bytesperonas

Comments

peronas’s picture

Status: Active » Needs review
StatusFileSize
new442 bytes

Hi 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!

orenbus’s picture

Thank you so much! That fixed the problem. :)

peronas’s picture

Status: Needs review » Closed (fixed)

Closing, fix committed to latest stable release.

peronas’s picture

Issue summary: View changes

additional note mentioning this module rocks