• I have read the wp_tag_cloud codex info and I dont see anywhere to stop the font-size attribute from being included.

    As a temporary fix I changed the small/large font to the same size but even though I set that it is still giving a few tags larger sizes.

    Question Is there a way to make a list of tags in my sidebar seperated by commas and with no html formatting. So just tags

Viewing 6 replies - 1 through 6 (of 6 total)
  • Check this trac ticket out for a discussion on tag cloud style:
    http://trac.wordpress.org/ticket/5191

    Also some info on get_the_tag_list
    http://wordpress.org/search/get_the_tag_list?forums=1

    Thread Starter thefranchise

    (@thefranchise)

    Thanks for the reply. Doesnt get_the_tag_list only return the tags for a single post?

    wp_tag_cloud has the functionality that I need but im trying to customize the output so there is no font-size declared.

    Is this possible with either of these functions?

    Thread Starter thefranchise

    (@thefranchise)

    Nevermind, I read all the comments and the link to Simple Tags.. That plugin does EXACTLY what I want.

    Thanks for pointing me in the right direction. I will try and do a better job of searching this forum before posting.

    🙂

    In
    wp-includes\widgets.php
    edit line #1139

    wp_tag_cloud();
    to
    wp_tag_cloud(‘smallest=12&largest=12’);

    This will make all tags font-size 12. You can adjust these numbers as you desire.

    this code made a big error on 2.5

    Parse error: syntax error, unexpected T_ECHO in /home.10.2/jeunecre/www/wordpress/wp-includes/widgets.php on line 1331

    not to be trusted…
    is there another solution?

    this worked for me

    wp_tag_cloud(‘smallest=10&largest=16&number=45&orderby=name&format=flat’);

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Custom Tag cloud formatting’ is closed to new replies.