WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Slideshow and gallery conflict -possible bug? (8 posts)

  1. Mike Seifried
    Member
    Posted 10 months ago #

    I have a website where I make use of the slideshow feature of NextGen gallery in the header area. The slideshow is sized 700 x 250. Here is the website: http://www.phillipsmill.org/

    Under normal circumstances, the slideshow is governed by the style class .ngg-slideshow. However, if there is a photo gallery on the same page, the slideshow is instead governed by the class .ngg-galleryoverview. The problem with this is that .ngg-galleryoverview specifies a top margin of 10px, which interferes with the positioning of the slideshow in the header.

    I have addressed this problem by adding the following to the custom stylesheet nggallery.css:

    .ngg-galleryoverview {
    margin-top: 0px !important;
    }

    I'm sure this wasn't the case when I originally designed this theme. Shouldn't the style of the slideshow remain the same regardless of whether there is a gallery in the main content area? Has a bug crept into NextGen gallery?

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

  2. DoubleSixx
    Member
    Posted 10 months ago #

    Which version of NextGen are you using ?

    If it's 2.x

    Look at my post about header slide show :

    http://wordpress.org/support/topic/header-slideshow-1?replies=5

    If it's a different version lemme know.

    I've made several for earlier types.

    Good luck.

  3. Mike Seifried
    Member
    Posted 9 months ago #

    I'm using the latest version 2.0.23.

    I looked at your post. I am using the following in my header:
    <?php $showgallery = '[slideshow=4]'; $showgallery = apply_filters('the_content', $showgallery ); echo $showgallery; ?>

    I can't remember where I got the php to wrap the shortcode in, but as you can see, I'm using a the basic [slideshow=x] and defining parameters in the Gallery slidewhow parameters.

  4. Mike Seifried
    Member
    Posted 9 months ago #

    I just found the NextGen page that defines the new shortcode structure for version 2.x. I guess that means that the shortcode [slideshow=4] is no longer reliable and now should be [ngg_images gallery_ids="4" display_type=ā€¯photocrati-nextgen_basic_slideshow"].

  5. DoubleSixx
    Member
    Posted 9 months ago #

    You might have to check your parameters.

    http://www.nextgen-gallery.com/nextgen-gallery-shortcodes/

  6. Mike Seifried
    Member
    Posted 9 months ago #

    Well, I updated my header code to look like this:

    <?php echo do_shortcode('[ngg_images gallery_ids="1" display_type="photocrati-nextgen_basic_slideshow"]'); ?>

    So I'm using the current shortcodes. The slideshow works, but I am still having the same problem described in my first post. I can only get the slideshow positioned correctly if I add the overriding class .ngg.galleryoverview to the custom style sheet.

    Again, this happens only if there is a gallery on the page. By the way, I also removed the gallery shortcode from the page and used the Attach to Post interface to add the gallery.

  7. photocrati
    Member
    Plugin Author

    Posted 9 months ago #

    @DoubleSixx - Thanks for helping out here, again!!

    @Mike - I've tried to recreate this issue and am unable to get what you are describing to appear in the CSS (as viewed via Firebug).

    In all test cases the same classes are used in the same order:
    ngg-galleryoverview ngg-slideshow
    This is the same with the combination you described as well as when the Slideshow is only used.

    Please feel free to submit a Bug Report on this issue, it would be greatly appreciated just in case we need to look closer at the issue and how these CSS elements are getting crossed up as you are describing them.

  8. Mike Seifried
    Member
    Posted 9 months ago #

    If ngg-galleryoverview always appears before ngg-slideshow, then that explains my problem.

    Here's what I mean:

    Case 1: http://www.phillipsmill.org/children-and-youth-activities-at-phillips-mill/ This page has no gallery in the content, so the slideshow in the header is handled by the class .ngg-slideshow, and the class .ngg-galleryoverview in the custom style sheet with 0px top margin is unnecessary.

    Case 2: http://www.phillipsmill.org/children-and-youth-activities-at-phillips-mill/talent-showcase-at-phillips-mill/ This page has a gallery on it, so .ngg-galleryoverview applies, and the slideshow would have a top margin of 10px, except that it is overridden by the custom style sheet.

Reply

You must log in to post.

About this Plugin

About this Topic