Xwioch Posted November 11, 2016 Share Posted November 11, 2016 (edited) 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 November 11, 2016 by Xwioch (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted November 11, 2016 Share Posted November 11, 2016 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'); }); Link to comment Share on other sites More sharing options...
Xwioch Posted November 11, 2016 Author Share Posted November 11, 2016 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 More sharing options...
endriu107 Posted November 11, 2016 Share Posted November 11, 2016 Probably not first element on your site have also class active, maybe some module in code have this class too, so at first we remove it from every element, and in another code line we add to first element. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now