Nevermind. I managed to do this by adjusting the Javascript in the Left.php file.
It now recognizes the frontpage by class and then automatically folds out widget. Her’s the code:
var wpssclose_ = 0;
if ($('body').hasClass('home')) {
jQuery('#wpbs_slider').animate({
left: '+=<?php echo $width;?>'
}, 400, function() {
// Animation complete.
});
wpssclose_ = 1;
}
jQuery('#icon_label').click(function() {
if(wpssclose_==1) {
jQuery('#wpbs_slider').animate({
left: '-=<?php echo $width;?>'
}, 400, function() {
// Animation complete.
});
wpssclose_ = 0;
} else {
jQuery('#wpbs_slider').animate({
left: '+=<?php echo $width;?>'
}, 400, function() {
// Animation complete.
});
wpssclose_ = 1;
}
});
You can see it working here: