SHARE
TWEET

excerpt_more Fanwood

samikeijonen Mar 19th, 2012 34 Never
  1. function fanwood_child_theme_setup() {
  2.  
  3.         /* Get the theme prefix ("fanwood"). */
  4.         $prefix = hybrid_get_prefix();
  5.        
  6.         /* ... to Read more */
  7.         add_filter( 'excerpt_more', 'my_excerpt_more' );
  8.  
  9. }
  10.  
  11. function my_excerpt_more( $more ) {
  12.         $more = '...<p><a class="more-link" href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">Read more &rarr;</a></p>';
  13.         return $more;
  14. }
RAW Paste Data
Top