Jump to content

Change Active Tab in Homepage


Xwioch

Recommended Posts

Hi.

First thing: I want to say sorry for my bad english.

 

I'm in trouble because I want to make the blockspecials tab my active tab, while now, the active tab is homefeatured.

 

What I want is to show as first tab the blockspecials and nothing else. I know about reorder the tab in displayHomeTab and displayHomeTabContent. I already did it, I also cleared the cache deleting files into smarty/cache and smarty/compile but still nothing happened. 

 

I got no idea now of what to do for solve this problem, so I'm creating this topic. 

 

I hope you guys can help me. Thanks.

Edited by Xwioch (see edit history)
Link to comment
Share on other sites

Try this, in themes/your_theme/js/index.js change code to:

 

$(document).ready(function(){
$('#home-page-tabs li, #home-page-tabs ul').removeClass('active');
$('#home-page-tabs li:first, #index .tab-content ul:first').addClass('active');
});

You're amazing dude, IT WORKS! 

Can you please tell me how it works? I wish to understand it. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...