Created
June 13, 2022 17:43
-
-
Save thetwopct/bc61bd218fde997cf0524210aebee712 to your computer and use it in GitHub Desktop.
Add content before and after thumbnail images in WooCommerce product thumbnails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready( | |
function( $ ) { | |
var newDiv = document.createElement('div'); | |
$(newDiv).attr('id','slider-nav'); | |
$(newDiv).attr('class','slider-nav'); | |
$('.flex-control-nav').wrap('#slider-nav'); | |
$('.flex-control-nav').wrap(newDiv); | |
$('.flex-control-nav').before('<span class="chevron-up"></span>'); | |
$('.flex-control-nav').after('<span class="chevron-down"></span>'); | |
} | |
); | |
// Related https://wordpress.org/support/topic/add-content-after-product-thumbnail-gallery/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment