Skip Navigation

[Resolved] Create dynamic tabs with bootstrap

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by massimoT-2 1 year, 5 months ago.

Assisted by: Waqar.

Author
Posts
#2483177

Hi, I need to create a template and I would like to avoid using elementor or gutenberg for a component but only use bootstrap. I need to create a tab similar to the link below. I have contents that may or may not be present both as the title of the tab and as content, when the content and the title are missing the html must discover within the code.

At the moment I have only created Post Field Groups

hidden link

#2483647

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

Yes, this is possible using the HTML structure of the Bootstrap tab (that you already have) and replacing the static text in it with the Toolset's shortcodes to make it dynamic:
https://toolset.com/documentation/customizing-sites-using-php/functions/
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/

To check whether a specific field has some value or not and then show/hide its tab and content HTML part, you can wrap it inside the conditional display statements, as explained here:
https://toolset.com/documentation/legacy-features/views-plugin/checking-fields-and-other-elements-for-emptynon-empty-values/

I hope this helps and please let me know if you need any further assistance with this.

regards,
Waqar

#2486235

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.