Created
April 6, 2017 21:59
-
-
Save donnamcmaster/cb72f858772fcd0dc9168c044613ae1f to your computer and use it in GitHub Desktop.
WordPress: reduce the font sizes in the tag cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Reduce the font sizes in the WordPress tag cloud | |
*/ | |
add_filter( 'widget_tag_cloud_args', function( $args ) { | |
$args['smallest'] = 11; | |
$args['largest'] = 24; | |
$args['unit'] = 'px'; | |
return $args; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment