the following filter worked fine:
function set_widget_tag_cloud_args($args) {
$my_args = array('smallest' => 16,
'largest' => 24,
'orderby'=>'name',
'order'=>'RAND',
'unit'=>'px',
'separator' => '<span style="font-size:16px"> | </span>',);
$args = wp_parse_args( $args, $my_args );
return $args;
}
add_filter('widget_tag_cloud_args','set_widget_tag_cloud_args');
With the new wp 4.9 however the 'smallest' and 'largest' arguments do not have any effect. It invariably shows 8pt for the 'smallest' and 22pt for the 'largest' font-size. The only argument that has an effect is 'order' => 'RAND'. The rest is ignored. I tried to alter the values in the source file (category-template.php). But also this test had no effect. Does anyone have an information about this behaviour? Thanks a lot for your interest. regards theo
add_filter('widget_tag_cloud_args','set_widget_tag_cloud_args', 999 );