Boutique da Tereza Posted February 13, 2020 Share Posted February 13, 2020 Hello, i've activated accessories tab on product page but i need that tab to be activated instead of click on it to see the products . How is that possible ? Link to comment Share on other sites More sharing options...
Matteo Posted February 13, 2020 Share Posted February 13, 2020 (edited) Hola, you can try to edit js and add the class "active" on every first element of tab section. Like this $(document).ready(function(){ $( ".product-info-tabs > li:first-of-type" ).addClass( "active" ); $( ".tab-content > h3:first-of-type" ).addClass( "active" ); $( ".tab-content > #product-description-tab-content:first-of-type" ).addClass( "active" ); }); Edited February 13, 2020 by Matteo (see edit history) Link to comment Share on other sites More sharing options...
Boutique da Tereza Posted February 13, 2020 Author Share Posted February 13, 2020 1 hour ago, Matteo said: Hola, you can try to edit js and add the class "active" on every first element of tab section. Like this $(document).ready(function(){ $( ".product-info-tabs > li:first-of-type" ).addClass( "active" ); $( ".tab-content > h3:first-of-type" ).addClass( "active" ); $( ".tab-content > #product-description-tab-content:first-of-type" ).addClass( "active" ); }); thanks you. but in what file i put that ? Link to comment Share on other sites More sharing options...
Matteo Posted February 14, 2020 Share Posted February 14, 2020 You can read more here: 😉 Have a nice day! 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