Files
sage/lib/extras.php
Ben Word 7551f99641 Re-add excerpt and wp_title functions from cleanup.php
Rename custom.php to extras.php
2014-03-30 19:36:47 -05:00

23 lines
439 B
PHP

<?php
/**
* Clean up the_excerpt()
*/
function roots_excerpt_more($more) {
return ' &hellip; <a href="' . get_permalink() . '">' . __('Continued', 'roots') . '</a>';
}
add_filter('excerpt_more', 'roots_excerpt_more');
/**
* Manage output of wp_title()
*/
function roots_wp_title($title) {
if (is_feed()) {
return $title;
}
$title .= get_bloginfo('name');
return $title;
}
add_filter('wp_title', 'roots_wp_title', 10);