Single product tabs: improve compat with GTM and similar | #38711
This commit is contained in:
commit
ad2c156966
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: tweak
|
||||||
|
|
||||||
|
Improve compatibility between GTM and the single product page.
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue