Tabs Prev+ Next - Nested buttons

Need help ASAP!

I’m using the below technique from @samliew :
http://webflow-tricks.webflow.io/how-to-add-prev-next-buttons-to-tab-component

To add Prev + Next buttons to a tabs component, however I need to put the buttons inside another div

image

Because it’s no longer a direct child of “inner-tab-wrapper” it doesn’t work, is there a way to get it to still connect to the buttons that are nested?

my read only:
https://preview.webflow.com/preview/new-venture-3?utm_medium=preview_link&utm_source=designer&utm_content=new-venture-3&preview=9216761bb107c0079c5f2802c53048cc&pageId=5d3b09509c3afa4a9683b86a&mode=preview

Note: I’ve messaged on the associated thread but Sam’s website says his schedule is full and I need help ASAP :cold_sweat:

Can you describe with screenshots which tab element(s) you are trying to page through with the arrows?

1 Like

@sam-g

@sam-g I was able to get a solution! Thanks so much for responding I really appreciate it :smiley:

From @sabanna "Based on your project’s structure,

I would try adding 2 more parameters parent(). in this line

"

Great, glad you got it worked out :slight_smile:

I was just about to take a look at the code, but yes, essentially you needed to traverse the DOM a little bit differently than the original code since you had changed the structure, nice work @sabanna

2 Likes