Tagged: tab section
Hello,
I’ve created a tab section.
The first item of the tab section is empty.
The second one (KNOCK THE DOOR) can be opened clicking on it.
My client ask me if it is possible also close it by a click.
Hope you can help me!
Thank you,
federica
Hey Federica,
I added this to functions.php and it worked. Please test:
jQuery('.av-section-tab-title:nth-child(2)').click(function(){
jQuery('.avia-builder-el-2 .av-layout-tab-inner').slideToggle("slow");
});
Best regards,
Jordan Shannon
Hello,
thank you, but it doesn’t work perfectly.
When you click at first time, i can’t see the content. I can see the content at the second click on ‘knock the door’ :(
Furthermore le code print me this notification
https://ibb.co/3R51RKm
Do you know why?
Thank you
f
Hi,
Apologies, so you want the text closed/hidden when the page loads?
Best regards,
Jordan Shannon
Yes!
Thank you
Hi,
I added the following as well:
jQuery('.avia-builder-el-2 .av-layout-tab-inner').hide()
Please test
Best regards,
Jordan Shannon
Thank you but thanks but I continue to see if error on the function.php https://ibb.co/dBdYpMZ :(
Hi,
I’m not seeing the console error on my end. Can you send me a translation of it?
Best regards,
Jordan Shannon