Site logo

Archived topic

A couple of questions about tabs in GB 1.7

2 replies · Started by Steve on February 7, 2023

Viewing posts 1–3 of 3

I'm working with the new tabs and there's a couple of things I'd like to be able to do but not sure how to approach them. I'm working with custom fields to populate content into the tabs which is working fine but...

1. I'd like to be able to hide a tab if there is no data in that custom field for that post. So rather than the tab show up but its content be empty on the front end, that particular tab just wouldn't show up at all for that post.

2. I'd like to be able to make a particular tab active when the page loads dependent on the taxonomy (where I have a tab for the corresponding term) so for example:

If the url was mysite.com/services/conferences/post, then the Conferences tab would be active by default when page loads
But if the url was mysite.com/services/events/post, then the Events tab would be active by default when page loads

Any help on achieving this would be most appreciated :)

Thanks.

Is this the right place to ask? Realised that perhaps I should have asked on the generate blocks site...

This archived topic is closed to new replies.