P
P
partyzanx2018-06-10 03:32:33
WordPress
partyzanx, 2018-06-10 03:32:33

How to resize tags in wordpress?

5b1c7189bca67984011427.png
The default is 8pt , but I can't find where this parameter is set?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Yanchevsky, 2018-06-10
@partyzanx

Try like this:

add_filter( 'widget_tag_cloud_args', 'change_tag_cloud_font_sizes');
function change_tag_cloud_font_sizes( array $args ) {
    $args['smallest'] = '10';
    $args['largest'] = '18';

    return $args;
}

What are snippets and how to use them in WordPress
8pt is the default value in the wp_tag_cloud function .
If you need more flexible control over the label font size, you can add additional .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question