Skip to content

Instantly share code, notes, and snippets.

@danfisher85
Created October 30, 2015 20:13
Show Gist options
  • Select an option

  • Save danfisher85/7dbe0e008403ea6938f9 to your computer and use it in GitHub Desktop.

Select an option

Save danfisher85/7dbe0e008403ea6938f9 to your computer and use it in GitHub Desktop.
Change arrows for pagination (woocommerce)
<?php
add_filter( 'woocommerce_pagination_args', 'rocket_woo_pagination' );
function rocket_woo_pagination( $args ) {
$args['prev_text'] = '<i class="fa fa-angle-left"></i>';
$args['next_text'] = '<i class="fa fa-angle-right"></i>';
return $args;
}
@ali-smith
Copy link
Copy Markdown

I've been trying to figure this out forever. Yours is the only solution that's worked for me. Thank you!

@abdobouna
Copy link
Copy Markdown

Nice code snippet, Thanks!

@shkasjon
Copy link
Copy Markdown

Nice, Thanks! How to wrap each link to span?

@TravisHi
Copy link
Copy Markdown

Thanks for this, I threw it in my child theme functions.php and it worked instantly.

@mstudioIL
Copy link
Copy Markdown

Is it still right for the new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment