Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Rotating images in header using NextGen gallery (http://forum.bytesforall.com/showthread.php?t=1197)

juggledad Apr 9, 2009 07:52 PM

[SOLVED] Rotating images in header using NextGen gallery
 
I've been messing around trying to see if I could get a rotating header (I'm helping my sister with a site for a school) and I've almost got things working.

1) Using NextGen gallery, I created a gallery called header_images and loaded my images to it.
2) I edited header.php and changed
-----------------------------------------------------------------
<!-- Header -->
<td id="header" colspan="<?php echo $cols; ?>">

<?php bfa_header_config($bfa_ata['configure_header']); ?>

</td>
<!-- / Header -->
-----------------------------------------------------------------
to
-----------------------------------------------------------------
<!-- Header -->
<td id="header" colspan="<?php echo $cols; ?>">

<?php
if (function_exists("nggSlideshowWidget"))
{ nggSlideshowWidget(6,1440,250); }
?>

<?php bfa_header_config($bfa_ata['configure_header']); ?>

</td>
<!-- / Header -->
-----------------------------------------------------------------
where '6' was the number of the gallery and 1440 is the width of images and the value set in Layout MAX width, while 250 is the hight of the images.

Now the images show up and rotate based on the duration set in the slideshow duration, but the image doesn't honor the other header settings. It's like it sits on top of the page and isn't paying attention to the settings for the header.

Is there any way to have it adhere to the other settings for the header?

paulae Apr 10, 2009 06:03 AM

I don't know about the code, but I'm looking at it on a MacBook Pro 15", resolution set to 1440x900. The top image extends past the container to the right and forces a horizontal scrollbar. I haven't looked at on a bigger screen yet, but obviously there's a problem with the image size, at the very least. Can you make it the same width as the non-rotating image? Can you put the rotating images in the logo bar instead, so they'll be nice and rounded?

juggledad Apr 10, 2009 06:10 AM

The images in the top (rotating images) and the bottom are the same size. the bottom one is controled by the theme. What I want to do is get the top part to be controled by the theme.

I'm hoping thet Flynn might give me a pointer in the right direction (please please)

Flynn Apr 10, 2009 08:09 PM

Try with a CSS insert

HTML Code:

#sbsl6_1 {
width: 100%;
}


juggledad Apr 11, 2009 05:37 AM

Ok, that works!!

For anyone else trying this, the code you insert is
#sbsl6_1 {
width: 100%;
}

(Flynn typed a '1' instead of an 'l') and the number after the sbsl is the number of the gallery.

Now...if I can just figure out how to round the corners and move the Blog title and tag line over it. there would be an easy solution to everyone that wants automatic image changes.

ciocchi May 20, 2009 02:28 AM

I tryed everything but I have problem with this issue. nextgen doesnt works.
I change in header.php the things suggestion and i insert in css the line above suggest, I create the gallery in nextgen , but nothing seem working. its seem that the calling;
<?php bfa_header_config($bfa_ata['configure_header']); ?> is not working and remain active the calling in bfa_header_config
why? what wrong?
also in safari mac I have a large band in the top. upon the header image
www.mialchemilla.it

ciocchi May 20, 2009 03:26 AM

update,
now i can see a black band on top, no image ( i istalled also jw image rotator) also in ff and safari

juggledad May 20, 2009 05:33 AM

To make sure that NextGen is running correctly, add a NextGen Slideshow to the sidebar and see if that works. This will help determine where the issue may be


All times are GMT -6. The time now is 04:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.