Created
September 19, 2016 13:03
-
-
Save Netzberufler/3f98464676ef142cd94673192f8411ba to your computer and use it in GitHub Desktop.
Font Size von Tag Cloud Widget ändern
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 | |
/** | |
* Modifies tag cloud widget arguments to have all tags in the widget same font size. | |
* | |
* @param array $args Arguments for tag cloud widget. | |
* @return array A new modified arguments. | |
*/ | |
function themeslug_widget_tag_cloud_args( $args ) { | |
$args['largest'] = 0.8125; | |
$args['smallest'] = 0.8125; | |
$args['unit'] = 'rem'; | |
return $args; | |
} | |
add_filter( 'widget_tag_cloud_args', 'themeslug_widget_tag_cloud_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment