The Featured Image is an image that is chosen as the representative image for Posts or Pages. Click the link above to add or change the image for this post. ';
}
function stitch_home_image(){
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'stitch_home', array('class' => 'postim') );
} else {
};
}
function stitch_slider_image(){
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'stitch_slider', array('class' => 'slidim') );
} else {
};
}
function new_excerpt_length($length) {
return 80;
}
add_filter('excerpt_length', 'new_excerpt_length');
function new_excerpt_more($more) {
return '[...]';
}
add_filter('excerpt_more', 'new_excerpt_more');
add_action('wp_footer', 'add_googleanalytics');
function add_googleanalytics() {
echo get_option('ztit_analytics');
}
// add a favicon to your
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
function my_custom_dashboard_widgets() {
global $wp_meta_boxes;
wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help');
}
function custom_dashboard_help() {
echo '
Welcome to Custom Blog Theme! Need help? Contact the developer here. For WordPress Themes visit: NPthemes
';
}
// enable threaded comments
function enable_threaded_comments(){
if (!is_admin()) {
if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
wp_enqueue_script('comment-reply');
}
}
add_action('get_header', 'enable_threaded_comments');
function blog_favicon() {
echo '';
}
add_action('wp_head', 'blog_favicon');
function wpbeginner_remove_version() {
return '';
}
add_filter('the_generator', 'wpbeginner_remove_version');
function ShortenText($text,$chars_limit = 50){
// Change to the number of characters you want to display
$chars_text = strlen($text);
$text = $text." ";
$text = substr($text,0,$chars_limit);
$text = substr($text,0,strrpos($text,' '));
// If the text has more characters that your limit,
//add ... so the user knows the text is actually longer
if ($chars_text > $chars_limit)
{
$text = $text."...";
}
return $text;
}
?>