Make WordPress Core

Ticket #40138: 40138.2010.diff

File 40138.2010.diff, 1.4 KB (added by xkon, 7 years ago)

Twenty Ten ul fix for tag cloud

  • src/wp-content/themes/twentyten/functions.php

     
    593593
    594594        return $images;
    595595}
     596
     597/**
     598 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     599 *
     600 * @since Twenty Ten 2.3
     601 *
     602 * @param array $args Arguments for tag cloud widget.
     603 * @return array A new modified arguments.
     604 */
     605function twentyten_widget_tag_cloud_args( $args ) {
     606    $args['largest']  = 22;
     607    $args['smallest'] = 8;
     608    $args['unit']     = 'pt';
     609    $args['format']   = 'list';
     610    return $args;
     611}
     612add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' );
     613 No newline at end of file
  • src/wp-content/themes/twentyten/style.css

     
    12991299}
    13001300
    13011301
     1302/* Tag Cloud UL Style Fixes */
     1303
     1304.tagcloud ul {
     1305        list-style-type: none;
     1306        margin-left: 0 !important;
     1307}
     1308
     1309.tagcloud ul li {
     1310        display: inline-block;
     1311}
     1312
     1313
    13021314/* =Mobile Safari ( iPad, iPhone and iPod Touch )
    13031315-------------------------------------------------------------- */
    13041316