Single product tabs: improve compat with GTM and similar | #38711

This commit is contained in:
Barry Hughes 2023-06-16 11:03:21 -07:00 committed by GitHub
commit ad2c156966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Improve compatibility between GTM and the single product page.

View File

@ -35,7 +35,7 @@ jQuery( function( $ ) {
$tabs_wrapper.find( '.wc-tab, .panel:not(.panel .panel)' ).hide(); $tabs_wrapper.find( '.wc-tab, .panel:not(.panel .panel)' ).hide();
$tab.closest( 'li' ).addClass( 'active' ); $tab.closest( 'li' ).addClass( 'active' );
$tabs_wrapper.find( $tab.attr( 'href' ) ).show(); $tabs_wrapper.find( '#' + $tab.attr( 'href' ).split( '#' )[1] ).show();
} ) } )
// Review link // Review link
.on( 'click', 'a.woocommerce-review-link', function() { .on( 'click', 'a.woocommerce-review-link', function() {