Ahmad Naser Turnkey Ecosystem Ahmad Naser
January 19, 2020

Dokan and Woocommerce Load more button for products

Published in the Ahmad Naser ecosystem. Estimated reading time: 1 minute.

Dokan and Woocommerce Load more button for products

<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>

Leave a Reply

Your email address will not be published. Required fields are marked *