summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:43:13 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:43:13 -0500
commit099bb1ab7c867dcc4ad4dcf73591c64c5d1bd7ea (patch)
tree9bc1924797503b93986cba12e1b44df327df74a4 /themes/twentyfourteen/functions.php
parentjetpack 5.3 (diff)
downloadblogs-gentoo-099bb1ab7c867dcc4ad4dcf73591c64c5d1bd7ea.tar.gz
blogs-gentoo-099bb1ab7c867dcc4ad4dcf73591c64c5d1bd7ea.tar.bz2
blogs-gentoo-099bb1ab7c867dcc4ad4dcf73591c64c5d1bd7ea.zip
Update twentyfourteen 2.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'themes/twentyfourteen/functions.php')
-rw-r--r--themes/twentyfourteen/functions.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php
index b815e77e..2946d19d 100644
--- a/themes/twentyfourteen/functions.php
+++ b/themes/twentyfourteen/functions.php
@@ -527,6 +527,27 @@ function twentyfourteen_wp_title( $title, $sep ) {
}
add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );
+
+/**
+ * Modifies tag cloud widget arguments to display all tags in the same font size
+ * and use list format for better accessibility.
+ *
+ * @since Twenty Fourteen 2.1
+ *
+ * @param array $args Arguments for tag cloud widget.
+ * @return array The filtered arguments for tag cloud widget.
+ */
+function twentyfourteen_widget_tag_cloud_args( $args ) {
+ $args['largest'] = 22;
+ $args['smallest'] = 8;
+ $args['unit'] = 'pt';
+ $args['format'] = 'list';
+
+ return $args;
+}
+add_filter( 'widget_tag_cloud_args', 'twentyfourteen_widget_tag_cloud_args' );
+
+
// Implement Custom Header features.
require get_template_directory() . '/inc/custom-header.php';