Re-add excerpt and wp_title functions from cleanup.php
Rename custom.php to extras.php
This commit is contained in:
@@ -13,4 +13,4 @@ require_once locate_template('/lib/nav.php'); // Custom nav modifica
|
||||
require_once locate_template('/lib/gallery.php'); // Custom [gallery] modifications
|
||||
require_once locate_template('/lib/comments.php'); // Custom comments modifications
|
||||
require_once locate_template('/lib/scripts.php'); // Scripts and stylesheets
|
||||
require_once locate_template('/lib/custom.php'); // Custom functions
|
||||
require_once locate_template('/lib/extras.php'); // Custom functions
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Custom functions
|
||||
*/
|
||||
22
lib/extras.php
Normal file
22
lib/extras.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Clean up the_excerpt()
|
||||
*/
|
||||
function roots_excerpt_more($more) {
|
||||
return ' … <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);
|
||||
Reference in New Issue
Block a user