Site logo

Archived topic

Replace Previous / Next, and Read More with FontAwesome icons

5 replies · Started by Shelby on February 5, 2020

Viewing posts 1–6 of 6

I am sure this is an easy task but I am not finding a solution. I wish to replace the Previous / next (https://shelby.d.pr/gXCBwb) with FontAwesome icons instead of words as well as "Read More" too.

GP Premium: 1.9.1
GP: 2.4.1

Hey David,

Thanks for that I was able to change the Prev/next but I can't get the Read More to update at all. Also, one other thing to throw in the mix, how can I position Next to the right side rather than being right next to Previous? (https://shelby.d.pr/7KmqYf)

This CSS to float the Next link to the right:

.next.page-numbers {
    float: right;
}

Read more - lets give this a go instead:

add_filter( 'option_generate_blog_settings', function( $settings ) {
    $settings['read_more'] = $settings['read_more'] . ' <i class="fad fa-arrow-right"></i>';

    return $settings;
} );

This will display whatever the Customizer read more contains followed by the FA HTML .

Hey David,

You, sir, are a saint! Thank you so much that works for what I am needing. Have a great day!

Thanks,

Shelby DeNike

You're welcome

This archived topic is closed to new replies.