Hello,
I have a question.
I Have a page “contact” with 5 tabs.
Tab 2 should link to another page.
I need the link in the the tab section in the tab-title.
Is this possible? I found one solution (https://kriesi.at/support/topic/download-link-in-tab-section-tab-title/)
that does not work for me.
Thank you and best regards
Barbara
Hey walhai,
Please include a link to your page and a admin login in the Private Content area so we can be of more assistance.
Best regards,
Mike
Hi Mike,
thank you for answering.
Please find all informations in PC.
Best regards
Barbara
Hi,
Thank you for the link to your site, Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_script() { ?>
<script>
window.addEventListener('DOMContentLoaded', function() {
(function($){
var changeLink = $('#kontakt a.av-section-tab-title[data-av-tab-section-title="2"]');
changeLink.on('click', function(e) {
e.preventDefault();
window.open(
'https://google.com',
'_self'
);
});
})(jQuery);
});
</script>
<?php
}
add_action('wp_footer', 'custom_script');
this will change the tab link to google.com, adjust to suit.
Best regards,
Mike
Hi Mike,
thank you, that worked perfect.
Best regards
Barbara
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike