Hi Community.
I used custom code from topic Linking to Specific Tab from another Link or Button
Custom code I added
<script>
$('.custom-button-1').on('click', function (evt) {
$('.target-tab-link-1').triggerHandler('click');
});
$('.custom-button-2').on('click', function (evt) {
$('.target-tab-link-2').triggerHandler('click');
});
$('.custom-button-3').on('click', function (evt) {
$('.target-tab-link-3').triggerHandler('click');
});
var Webflow = Webflow || [];
Webflow.push(function () {
var tabName = getParam('tab');
if (!tabName) return;
$('.' + tabName).triggerHandler('click');
function getParam(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
});
</script>
I can’t understand how to change the code to make it work. Can you help me with that please? Thank you.
Here is my site Read-Only: https://preview.webflow.com/preview/16x9infoupdated?utm_medium=preview_link&utm_source=designer&utm_content=16x9infoupdated&preview=9532225ba866a28e2f6dcbff835b64b2&mode=preview