Wordpress and Webdesign Forum go41 » bbpress discussion

Set font size range for hot tags in bb_tag_heat_map

(1 post) (1 voice)

Tags:

  1. As long tags got truncated in by overflow hidden in my hot tags display, I looked for a way to adjust the size for biggest and smallest tags in this BBPress 0.9.0.4 heatmap.

    That's by far not as easy as in WordPress itself, not just an option or a matter of style.css.

    In BBPress 0.9.0.4 you have to pass a parameter to <?php bb_tag_heat_map(); ?>
    You find this call in front-page.php of your template (theme)

    Default on my forum was 8pt and 22pt for smallest and largest, to change this I succeeded by changing <?php bb_tag_heat_map(); ?> to

    <?php bb_tag_heat_map(array( 'smallest' => 10, 'largest' => 30, 'unit' => 'px', 'limit' => 40 )); ?>

    or to get points pt again another parameter:

    <?php bb_tag_heat_map(array( 'smallest' => 8, 'largest' => 18, 'unit' => 'pt', 'limit' => 40 )); ?>

    Just try if that works for you to change the size of your tag cloud in BBPress.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):