Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Poortvliet <jospoortvliet@gmail.com>2018-02-14 01:50:04 +0300
committerJos Poortvliet <jospoortvliet@gmail.com>2018-02-14 01:50:04 +0300
commiteffe04238ffe0584e5e8dba4ec41f72d496c52d1 (patch)
tree33494e67cc328db650ee134bf7dd16735baa6195 /functions.php
parent244e4ba8615e8f34111b50a78d3c5c2ff712a8d1 (diff)
improve blog list view
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 5a5b164c..5490bc74 100644
--- a/functions.php
+++ b/functions.php
@@ -34,5 +34,10 @@ function translationUrlFilter($url) {
return $url;
}
+function custom_excerpt_length( $length ) {
+ return 50;
+}
+add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
+
add_filter('home_url', 'translationUrlFilter');
add_theme_support( 'post-thumbnails' );