• skyspec

    (@skyspec)


    I like the style of the tag cloud in the wordpress theme twenty fourteen where the font size of the tag varied according to the tag count.
    Twenty seventeen changed all that by adding this css:
    .widget .tagcloud a {
    font-size: 14px !important; /* !important to overwrite inline styles */
    font-size: 0.875rem !important;

    As it says, it removed the inline styles which would set font size according to tag count. The only way I found I could change it was to comment out the two lines on my PARENT style sheet and upload that.

    Until 4.9
    Now the inline style is font-size: 1em for all tags, regardless of tag count.
    Why has this feature been removed? What can I do to get the styling back?

    • This topic was modified 7 years ago by skyspec.
Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter skyspec

    (@skyspec)

    add_filter( ‘widget_tag_cloud_args’, ‘prefix_custom_tag_cloud_widget’, 20 );
    THAT WORKS!
    Thanks guys!
    The remove filter method restored the font sizes but the li’s were at 100% width maybe. Some css might have fixed it, the other worked out of the box.

    Dear Samuel, which plug-in do you suggest that will solve the problem?

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘tag cloud’ is closed to new replies.