Hi, I've installed an Elegant Themes, theme called Coldstone to http://coolseasongardening.com/. The theme as created has a featured section on the homepage with five stories, BUT they do not shuffle through, they simply sit stagnant on item #1. I asked Elegant Themes for help adding the correct code to make them shuffle as seen on this example of a Coldstone Theme, http://www.highinfatuation.com/ but their support staff says they can't help as that is a modification to the theme I downloaded.
So I pulled this code from highinfatuation.com,
// Modifies the manual carousel with a timer
$(tabContainers).find('.tabNavigation li:eq(0) a').css('background-color','#000');
var $featuredBox = $('.feature_wrap'),
numDivs = tabContainers.length,
cycleInterval = 4000;
// Starts/stops carousel timer
function startTimer() {
cycleTimer = setInterval(function() {
var visibleOne = parseInt($(tabContainers).filter(':visible').attr('id').substring(3),10),
nextOne = visibleOne;
if (nextOne == numDivs) {
nextOne = 0;
}
$('#tab' + visibleOne + ' .tabNavigation li:eq(' + nextOne + ') a').trigger('click');
$(tabContainers).find('.tabNavigation li a').css('background-color','transparent');
$(tabContainers).find('.tabNavigation li:eq(' + nextOne + ') a').css('background-color','#000');
}, cycleInterval);
};
function stopTimer() {
window.clearInterval(cycleTimer);
};
if ($featuredBox.length > 0) {
startTimer();
}
// Start/stop cycle
$featuredBox.hover(stopTimer, startTimer);
});
And I'm not sure where to add it to the php files or css of my theme. I've tried adding it a few places, and it's not working. Can someone help me apply this or a modified version of this in the right place?
Thanks!