@bigironcruiser – If you need to address each specific slideshow then you will need to update your CSS each time you edit it … if you are wanting to address all slideshows then you can use the ngg-slideshow class.
– Cais.
That’s really inconvenient, and it seems rather senseless to change the ID if nothing about the gallery has changed. What’s the purpose of changing the ID? Is it changed by the Nextgen Plugin?
The gallery ID shouldn’t change on every page load, only if you change the settings to that gallery.
Are you using a shortcode or the Attach-To-Post window, or is your gallery a ‘random’ one?
The ID doesn’t change when the page is loaded. It’s when the page containing the gallery is edited in WP-Admin and then saved/updated. This happens EVEN when the edit has NOTHING to do with the Nextgen Gallery.
My apologies, I was wrong–the basic slideshows ID is set in adapter.nextgen_basic_slideshow_controller.php to 'ngg-slideshow-' . $displayed_gallery->id() . '-' . rand(1, getrandmax()) . $current_page which will definitely add an unwanted random number to the ID. This is evidently meant for compatibility in case the same slideshow is present more than once on a page, but it was implemented incorrectly.
I’ve made a note of this to try to get it fixed in the next major release, but until then you could try editing nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/slideshow/index.php to add data-gallery-id='<?php esc_attr_e($displayed_gallery_id); ?>' to the div.ngg-slideshow-image-list element.