imi.mehesz Posted March 17, 2015 Share Posted March 17, 2015 Hy, I install a clear prestahop ( latest ) and i have 3 tabs on Homepage by default: 1. New Arrivals, Popular, Best Sellers. I want to delete the Best Seller tab and tab content and make default the default tab and content the Popular tab. In Modules->Positions->displayHomeTab and displayHomeTabContent unhook the new products tab, but now i have no one active tab and content. See the attached image. Thanks Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 unhook these modules from displayHomeTab hook too. Link to comment Share on other sites More sharing options...
imi.mehesz Posted March 18, 2015 Author Share Posted March 18, 2015 (edited) i unhook all modules from displayHomeTab and displayHomeTabContent and populate back the Top sellers and Featured products on the homepage. Now i have both modules on active state. I resolve this with a jQuery code, but I don't think that would be the only solution. The code: $(document).ready(function(){ if($('#home-page-tabs li.active').length > 1) { $('#home-page-tabs li.active').removeClass('active'); $('#home-page-tabs li').first().find('a').trigger('click'); } }); Thanks for your reply. Edited March 18, 2015 by imi.mehesz (see edit history) Link to comment Share on other sites More sharing options...
grubybarti Posted May 2, 2017 Share Posted May 2, 2017 I tried to do it your way but I still can't get Newsest active. 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