• Hello.
    I’m trying to open a specific tab from other page’s link.
    I found many post about this, many people say it’s not available at this moment.
    However some people seem to manage it to work somehow like the linked post.

    So if there is anyone super genius for coding,
    Please help me out…

    I have
    Theme:sydney
    plugin:elementor
    I have link from:home page
    Linked page that have tab:Price

    I found code for tab that sydney theme use.
    In case it will be any help… the file was under sydney/inc/onborading/assets/info-page.js

    ———————————————-

    ;(function($) {
    
    	$('.sydney-tab-nav a').on('click',function (e) {
    		e.preventDefault();
    		$(this).addClass('active').siblings().removeClass('active');
    	});
    
    	$('.sydney-tab-nav .begin').on('click',function (e) {		
    		$('.sydney-tab-wrapper .begin').addClass('show').siblings().removeClass('show');
    	});	
    	$('.sydney-tab-nav .actions, .sydney-tab .actions').on('click',function (e) {		
    		e.preventDefault();
    		$('.sydney-tab-wrapper .actions').addClass('show').siblings().removeClass('show');
    
    		$('.sydney-tab-nav a.actions').addClass('active').siblings().removeClass('active');
    
    	});	
    	$('.sydney-tab-nav .support').on('click',function (e) {		
    		$('.sydney-tab-wrapper .support').addClass('show').siblings().removeClass('show');
    	});	
    	$('.sydney-tab-nav .table').on('click',function (e) {		
    		$('.sydney-tab-wrapper .table').addClass('show').siblings().removeClass('show');
    	});	
    
    })(jQuery);

    __________________________________________________________
    Any help is appreciated.
    Thank you so much in advance:)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I recommend asking in the theme’s dedicated support forum. There could be an existing method to do so. The devs and expert users there would know.

    Anyway, something needs to be passed in the URL indicating what tab to open. When the page loads, script needs to find out what that is and add/remove classes from the appropriate elements. The jQuery .click() function could be used to simulate a click event on a specific tab, which in turn invokes the built in tab switching code.

Viewing 1 replies (of 1 total)
  • The topic ‘Open Specific Tab from other page link’ is closed to new replies.