WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Custom Gallery slideshow Theme - v1.9.7 (2 posts)

  1. DavidVII
    Member
    Posted 1 year ago #

    Hello, I'm trying to create a custom theme for my slideshow gallery template, but am having trouble figuring out how to do this.

    I've added a nggallery directory in my root theme folder. I've created gallery-sample1.php file to it, but this only seem to effect gallery view and not the slideshow view.

    Can anyone point me in the right direction?

    Thnx!!

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. smigliorato
    Member
    Posted 1 year ago #

    I don't know what kind of styling you are doing exactly.

    Which slideshow are you using? If you are referring to the "[Show as slideshow]" link you can do this...

    Add css styles to the slideshow element via Galleries->Style with this selector:

    .ngg-slideshow {
        /* some rules will already be here */
        /* just add your own below         */
    }
    
    For the images directly, add this:
    
    .ngg-slideshow img {
        /* Add your styles */
    }

    CSS can do some pretty fancy things these days. If you get something like Firebug for Firefox you can edit the CSS and see what it does instantly. Then, just copy what you've made into the file in the above portion of the CSS file.

    Just to clarify, do you want to style just the slideshow, or both?

    ---------

    You can use
    <?php echo nggShow_JS_Slideshow($galleryID, $width, $height) ?>
    to insert a slideshow in a template somewhere (a template for your theme perhaps). That only allows you to edit width and height of course.

    Your back to CSS unless you want to edit the relevant sections of nggfunctions.php (where the code that actually generates the HTML for the slideshow appears to live).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic