• Please see the following website:

    http://rickmuellerphotography.com/

    I have added an HTML module to my Builder theme with the following php code:

    <div align="center";>
    <?php
    if (function_exists("nggSlideshowWidget"))
    {
         nggSlideshowWidget(1,$Width=960,$Height=250);
    }
    ?>
    </div>

    This displays a slideshow, as desired. However, there is a white gap between the navigation bar and the slideshow that I would like to remove.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just a shot – try to use:

    .ngg-widget-slideshow {
    	overflow: hidden;
    	margin:0;
    	padding:0;
    	text-align:left;
    }
    
    .ngg-widget img {
    	border:none;
    	margin:0;
    	padding:0;
    }

    In you stylesheet.

    M

    Thread Starter stevescode

    (@stevescode)

    M,

    Thank you for the suggestion. I have added the code to my stylesheet, but it did not remove the gap. Please see the ../Builder-Child/style.css stylesheet for the update.

    Do you have any other suggestions?

    Thank you!

    Thread Starter stevescode

    (@stevescode)

    M,

    I ended up figuring out that the issue was being caused by the Builder theme. In ../Builder/style.css, I found the following code, which applied a margin to all images that were displayed by NextGEN Gallery:

    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    address, dfn, img, samp, ul, ol, dl {
    	margin-top: 1.5em;
    	margin-bottom: 1.5em;
    }

    Thus, I added the following code to my child stylesheet, which overrode the Builder theme margin for images:

    img {
    	margin:0;
    }

    However, this also revealed a new issue. The images were initially displayed 5 pixels below the navigation bar, and then they would shift up, and there would be a 5 pixel gap below the images. After a search, I found a solution for the problem at the following website:

    http://wordpress.org/support/topic/plugin-nextgen-gallery-nextgen-slideshow-loads-out-of-position?replies=5

    I have updated the nggallery.css file through FTP to correct the issue, but I would prefer to do this through a child stylesheet so I can upgrade to later revisions of NextGEN Gallery without having to change it’s stylesheet. I have tried to include the following code in my ../Builder-Child/style.css stylesheet, but it did not correct the issue:

    .ngg-widget,
    .ngg-widget-slideshow {
    	overflow: hidden;
    	margin:0pt;
    	padding:0px 0px 0px 0pt;
    	text-align:left;
    }

    Is there a different way to override the nggallery.css stylesheet, other than updating it directly?

    Thank you again!

    Glad you got it sorted. You can copy the nggallery.css to your theme folder instead. It will use that before looking in plugin folder.

    M

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Gap Between Navigation Bar and Slideshow’ is closed to new replies.