Results 1 to 1 of 1

Thread: Change tab opened by default

  1. #1
    Thread Starter
    Newbie issacobra's Avatar
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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();
    });

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Change default user avatar
    By jackie2011ws in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: June 13th, 2012, 10:25 AM
  2. Change default fonts.
    By tonyperez in forum ClassiPress General Discussion
    Replies: 9
    Last Post: September 22nd, 2011, 02:01 PM
  3. [SOLVED] Internet Explorer freezes when ad is opened
    By johnpnoy in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: February 2nd, 2011, 06:54 PM
  4. Change default menu order
    By Neal in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 18th, 2011, 11:05 AM
  5. Change default email
    By jcgorospe in forum Help Using ClassiPress
    Replies: 1
    Last Post: May 14th, 2010, 06:55 PM