Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    The code at https://www.remicorson.com/access-woocommerce-product-tabs-directly-via-url/ is more geared towards deep linking – it won’t allow you to influence tab behaviour when clicking on other links on the same page.

    Instead, you would need to write additional custom jQuery to achieve that.

    Thread Starter misiekem

    (@misiekem)

    I solved it with jQuery

    Code that worked for me:

        jQuery(document).ready(function($) {
            $('a#tab-zadaj-pytanie').click(function() {
                $('#tab-title-zadaj-pytanie a').trigger('click');
            });
            $('button#tab-booking-system').click(function(){
                $('#tab-title-booking-system a').trigger('click');
            });
        });
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing the active product tab with an url’ is closed to new replies.