WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Resize Tag Cloud Minimum font (4 posts)

  1. pchhetri
    Member
    Posted 12 months ago #

    Hello,

    How do I change the font of my tag cloud so that the smallest tag is at least 14px or something readable? I understand that they change as a tag is used more frequently.

    My site is at:
    http://www.hindudharmacircle.org/events/

    [Moderator Note: Please ensure that you are embedding links correctly in your posts.]

  2. Lorenzo Orlando Caum
    Member
    Posted 12 months ago #

  3. pchhetri
    Member
    Posted 12 months ago #

    Does this link work?

    or this. http://www.hindudharmacircle.org/events

    I'll try your suggestion in the meantime.

  4. pchhetri
    Member
    Posted 12 months ago #

    Thank you! for helping me find that!

    I put the code in my functions.php child theme and worked perfectly.

    I had this code in there previously and it didn't work:

    add_filter('widget_tag_cloud_args', 'tag_cloud_filter', 90);
    function tag_cloud_filter($args = array()) {
     $args['smallest'] = 8;
     $args['largest'] = 13;
     $args['unit'] = 'pt';
     return $args;
    }

    But this one (from the article above did):

    add_filter('widget_tag_cloud_args','set_tag_cloud_sizes');
    function set_tag_cloud_sizes($args) {
    $args['smallest'] = 12;
    $args['largest'] = 19;
    return $args; }

    I'm not good with PHP

Reply

You must log in to post.

About this Topic