Skip to content

Instantly share code, notes, and snippets.

@cpaul007
Created June 18, 2015 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cpaul007/20f88227def28ed460c1 to your computer and use it in GitHub Desktop.
Save cpaul007/20f88227def28ed460c1 to your computer and use it in GitHub Desktop.
Replacing default prev/next arrow with font awesome icon
<?php
//* Do not add this opening tag
/**
* Replacing default Prev/Next arrow with Font Awesome icon
*
* Add the following codes in functions.php file
*
* @author Genesis Developer
* @link http://genesisdeveloper.me
* @since 1.0.0
* @version 1.0.4
*/
add_filter('gfpc_previous_link_text', 'gfpc_add_font_awesome_prev_arrow');
function gfpc_add_font_awesome_prev_arrow( $prev ) {
return '<i class="fa fa-chevron-left"></i>';
}
add_filter('gfpc_next_link_text', 'gfpc_add_font_awesome_next_arrow');
function gfpc_add_font_awesome_next_arrow( $next ) {
return '<i class="fa fa-chevron-right"></i>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment