Jump to content


Photo
- - - - -

FontAwesome in read more link

fontawesome read more link customization

Best Answer Simon_P , 15 February 2013 - 03:19 PM

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>';
}
 
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Denis Ciumbargi

Denis Ciumbargi

    Advanced Member

  • Members
  • 66 posts
  • Framework Version:DMS Pro
  • Country: Country Flag

Posted 15 February 2013 - 03:09 PM

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?

 

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content

  20.18KB   12 downloads



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 15 February 2013 - 03:19 PM   Best Answer

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

 

 

 

Please Login or Register to see this Hidden Content



#3 Denis Ciumbargi

Denis Ciumbargi

    Advanced Member

  • Members
  • 66 posts
  • Framework Version:DMS Pro
  • Country: Country Flag

Posted 17 February 2013 - 06:50 PM

Simon, thank you again! :D 

 

Sorry for the late reply back :D

 

Worked great :D







Also tagged with one or more of these keywords: fontawesome, read more, link, customization