Dokan and Woocommerce Load more button for products
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<script> jQuery(document).ready(function( $ ) { jQuery('.page-numbers li, .dokan-pagination li').each(function( index ) { //console.log( index + ": " + jQuery( this ).text() ); var loadmoree = ""; if(jQuery( this ).children('a').attr('href') != undefined){ console.log(jQuery( this ).children('a').attr('href') ); loadmoree = jQuery( this ).children('a').attr('href'); } jQuery('.page-numbers').html('<a class="ldmoore" href="'+loadmoree+'">المزيد</a>'); jQuery('.dokan-pagination').html('<a class="ldmoore" href="'+loadmoree+'">المزيد</a>'); }); }); </script> <style> a.ldmoore { padding: 10px; border: 2px solid; display: block; width: 200px; } </style> |