
excerpt_more Fanwood
By:
samikeijonen on
Mar 19th, 2012 | syntax:
PHP | size: 0.39 KB | hits: 34 | expires: Never
function fanwood_child_theme_setup() {
/* Get the theme prefix ("fanwood"). */
$prefix = hybrid_get_prefix();
/* ... to Read more */
add_filter( 'excerpt_more', 'my_excerpt_more' );
}
function my_excerpt_more( $more ) {
$more = '...<p><a class="more-link" href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">Read more →</a></p>';
return $more;
}