Archived

This topic is now archived and is closed to further replies.

  • 0

FontAwesome in read more link


Question

Posted · Report post

Hi, i wanted to change the way the read more links appear on my website and instead of the arrow html to use the incorporated fontawesome icons like <i class="icon-chevron-right"></i> or the eye.

 

Nothing happens. Can i trick this somehow?

 

post-31546-0-58810000-1360940920_thumb.p

Share this post


Link to post
Share on other sites

2 answers to this question

Posted · Report post

You cant add HTML into that option, wordpress will sanitise it and strip any HTML.

 

So you need a filter. Assuming you already have the (free) pagelines-customize plugin installed and activated, add the following to its functions.php

 

 

 

add_filter( 'continue_reading_link_text', 'add_my_continue' );
function add_my_continue() {
    
    return 'Continue Reading <i class="icon-beer"></i>';
}
 

Share this post


Link to post
Share on other sites

Posted · Report post

Simon, thank you again! :D 

 

Sorry for the late reply back :D

 

Worked great :D

Share this post


Link to post
Share on other sites