Skip to content

Instantly share code, notes, and snippets.

@iamkingsleyf
Forked from cpaul007/gfpc_prev_next_nav.php
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamkingsleyf/08fe9e0996f2eeb7b66f to your computer and use it in GitHub Desktop.
Save iamkingsleyf/08fe9e0996f2eeb7b66f 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