Anyone know why?

Topics: Themes
Aug 19, 2010 at 7:49 PM
I am using the same theme for 2 websites and the tag cloud font size in one site is larger than the other, same style sheet. Is it the number of tags on the smaller font size site? Thank you, Jerry Dean
Aug 19, 2010 at 10:46 PM

You're right, I can see that both sites are using the same styles for the tag cloud.

The tag cloud assigns a CSS class to each tag, depending on how often that tag is used relative to the other tags.  There are 5 different CSS classes it chooses from -- "biggest, big, medium, small, smallest".

On site 2, all the tags are being assigned "biggest".  On site 1, all of the tags are being assigned "smallest", except for the tag "Art Wells" which is being assigned "biggest".

This means that on site 1, Art Wells is used in more posts than the other tags.  On site 2, all the tags are being either used the exact number of times, or a very close number of times.

This is being calculated and determined in the widget.ascx.cs file in the Widgets\Tag Cloud folder.  Maybe the formula could be fine tuned.  I guess if you don't compare the sites side-by-side, it won't be such a glaring issue  :)

Aug 19, 2010 at 11:10 PM
Thank you once again Ben.