Hi @amuhareb
Thanks for reaching out. I’m glad to hear you enjoy using our plugin.
At the moment, the tabs don’t include the functionality to show and hide content. However, I have some other updates to make over the next couple of weeks so I can have a look in to adding this functionality for you and let you know once it’s available.
In the meantime you could setup your tabs in a certain way and add some custom JS to handle this for you. Add the below code in to the code editor view of your page:
<!-- wp:html -->
<script>
jQuery(document).ready(function($){
$('.tab-content .tab-panel:not(.tab-panel:first-of-type)').hide();
$( '.nav-tabs a' ).click( function(e) {
e.preventDefault();
var selector = $( this ).attr( 'href' );
var parent = $( this ).parents( '.tabs' );
parent.find('.tab-panel').hide();
parent.find( selector ).show();
parent.find( '.nav-tabs a').removeClass( 'active' );
$( this ).addClass( 'active' );
});
});
</script>
<!-- /wp:html -->
<!-- wp:areoi/div {"block_id":"e356bed5-faf4-4e10-a361-d88bff731ceb","className":"tabs"} -->
<!-- wp:areoi/nav-and-tab {"block_id":"e7c77c9e-ee56-40b8-b5e6-a054e5fb62c8","style":"nav-tabs"} -->
<!-- wp:areoi/nav-and-tab-item {"block_id":"94114483-0f22-4009-aace-6c493d4e8200","url":"#tab-1","text":"Tab 1","className":"active"} /-->
<!-- wp:areoi/nav-and-tab-item {"block_id":"1009a845-74dc-432c-9886-4d9a635ac597","url":"#tab-2","text":"Tab 2"} /-->
<!-- /wp:areoi/nav-and-tab -->
<!-- wp:areoi/div {"block_id":"0bcb51eb-78c1-4d8e-95bf-4fdb77f7e26f","className":"tab-content"} -->
<!-- wp:areoi/div {"anchor":"tab-1","block_id":"7e59822d-f5a5-4083-a979-ea6cae1a9b4d","className":"tab-panel"} -->
<!-- wp:paragraph -->
<p>Tab 1 content</p>
<!-- /wp:paragraph -->
<!-- /wp:areoi/div -->
<!-- wp:areoi/div {"anchor":"tab-2","block_id":"186dbc71-1f78-4be6-b579-44e18edb5913","className":"tab-panel"} -->
<!-- wp:paragraph -->
<p>Tab 2 content</p>
<!-- /wp:paragraph -->
<!-- /wp:areoi/div -->
<!-- /wp:areoi/div -->
<!-- /wp:areoi/div -->
Hopefully the above code gives you an idea of how to achieve what you’re after. It would be best to move the JS in to your themes JS file rather than having it in a Custom HTML block as I have done above.
I know this isn’t ideal but at least you can get something working while I build the functionality. Let me know if you need any further explanation on how the code above works.
I will drop you a message once I have added the functionality to the plugin.
Thanks
Miles