Link Magic

For opening a specific tabs

For opening a specific tabs, add this code to an HTML element within the same page template and use  ‘data-tab-open|x‘ (replace x with the number of the tab based zero) ie. first tab get 0, second tab get 1.
Add that to the link element > advanced > attribute box


document.addEventListener('DOMContentLoaded', function() {
let desktoptitles = $('.elementor-tab-desktop-title');
let mobiletitles = $('.elementor-tab-mobile-title');
let isMobile = window.innerWidth < 768;
let openers = document.querySelectorAll('[data-tab-open]');

openers.forEach( (e,i) => {
let openThis = e.getAttribute('data-tab-open');
if (!(desktoptitles.eq(openThis).hasClass('elementor-active'))){
if (!(mobiletitles.eq(openThis).hasClass('elementor-active'))){
$('html, body').animate({
scrollTop: isMobile? mobiletitles.eq(openThis).offset().top - 100 : desktoptitles.eq(openThis).offset().top - 100
}); } );


Tools we are proud to recommend

Set an appointment with a specialist
to get the support you need.

WP Quick Support strives to ensure the protection of your personal information through responsible practices. All personal information collected by WP Quick Support is done so exclusively with your consent, by means of a form posted on our website, an email received from you or by telephone. No information is collected automatically.