Change tab opened by default
Take a look at
http://mule.cc/classifieds/ad-category/food/
What I want to happen is have it automatically open up the food tab, not attractions then have to click to food. When a user clicks the category in the header, it goes to the page with the correct tab, but does not open that tab by default. I couldn't find an option for default tab in there. site is still in beta, please ignore the ad listings.
I've tried changing the link (in each header item) to
http://mule.cc/classifieds/ad-category/$cat/#$cat (i also changed the tab names to each #cat instead of #block1,2,34, etc, but it still opens the first tab. Is there a way to do this?
Do I have to edit something in theme-script.
js?
jQuery(function($) {
var tabContainers = $('div.tabcontrol > div');
tabContainers.hide().filter(':first').show();
$('div.tabcontrol ul.tabnavig a').click(function () {
tabContainers.hide();
tabContainers.filter(this.hash).fadeIn(100);
$('div.tabcontrol ul.tabnavig a').removeClass('selected');
$(this).addClass('selected');
return false;
}).filter(':first').click();
});