What filter to change font size of tag cloud of standardGutenber block
-
[It was recommended that I repost in this forum]
I’m trying to set the max and min font size for a tag cloud made with the built in Gutenberg tag cloud block. Twenty Twenty theme.
I found this code but it only works for me on the tag cloud widget in a widget area, not the tag block. I’ve tried removing the widget_ bit. I’ve tried changing that to block_. Neither worked.
add_filter( 'widget_tag_cloud_args', 'change_tag_cloud_font_sizes'); /** * Change the Tag Cloud's Font Sizes. * * @since 1.0.0 * * @param array $args * * @return array */ function change_tag_cloud_font_sizes( array $args ) { $args['smallest'] = '10'; $args['largest'] = '18'; return $args; }
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘What filter to change font size of tag cloud of standardGutenber block’ is closed to new replies.