Jump to content

Homepage Tabs

Recommended Posts



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.




Link to comment
Share on other sites

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: 


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 by imi.mehesz (see edit history)
Link to comment
Share on other sites

  • 2 years later...

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...