Hello, I was wondering if it was possible to set a predefined height of the banner area, because depending on the picture of the Slideshow, this area increases or decreases changing the rest of the web.

Thanks and Congrats for your work.

Comments

gtsopour’s picture

Assigned: Unassigned » gtsopour
Status: Active » Fixed
Issue tags: +corporate, +Corporate Theme, +Corporate Clean Theme

Hello pakone,

You should comment the option after: and add the option height: with your desired height inside the teplate.php file. Just make the following change inside Corporarate Clean template.php file (change the value 400 to your height).

From

drupal_add_js('jQuery(document).ready(function($) {  

$("#slideshow").cycle({
	fx:    "'.$effect.'",
	speed:  "slow",
	timeout: "'.$effect_time.'",
	pager:  "#slider-navigation",
	pagerAnchorBuilder: function(idx, slide) {
		return "#slider-navigation li:eq(" + (idx) + ") a";
	},
	after: onAfter
});

function onAfter(curr, next, opts, fwd){
	var $ht = $(this).height();
	$(this).parent().animate({height: $ht});
}

});',
array('type' => 'inline', 'scope' => 'header', 'weight' => 5)
);

To

drupal_add_js('jQuery(document).ready(function($) {  

$("#slideshow").cycle({
	fx:    "'.$effect.'",
	speed:  "slow",
	timeout: "'.$effect_time.'",
	pager:  "#slider-navigation",
	pagerAnchorBuilder: function(idx, slide) {
		return "#slider-navigation li:eq(" + (idx) + ") a";
	},
	//after: onAfter
        height:400
});

function onAfter(curr, next, opts, fwd){
	var $ht = $(this).height();
	$(this).parent().animate({height: $ht});
}

});',
array('type' => 'inline', 'scope' => 'header', 'weight' => 5)
);

You can see all the JQuery Cycle plugin options here http://jquery.malsup.com/cycle/options.html.

Thanks
George

pakone’s picture

Thanks a lot George for your kind support, it works perfect!

gtsopour’s picture

You are welcome.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

seantume’s picture

Hi George,

I have attempted to make this fix however I notcie in my template file the height had already been commented above the slide show cycle line. I have tried both forms of your fix however I think my knowledge isn't good enough to fiz appropriately.

My site is here: http://www.tumelaser.com/homepage

It's an awsome theme, I just can't seem to fix the minor image stacking on page load.

I'm running 1.5

Any ideas?

Thanks in advance

Kind Regards

Sean