Make WordPress Core

Ticket #40138: 40138.2011_1.diff

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

Twenty Eleven ul fix for tag cloud - Updated function name.

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

     
    743743
    744744        return $images;
    745745}
     746
     747/**
     748 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     749 *
     750 * @since Twenty Eleven 2.6
     751 *
     752 * @param array $args Arguments for tag cloud widget.
     753 * @return array A new modified arguments.
     754 */
     755function twentyeleven_widget_tag_cloud_args( $args ) {
     756    $args['largest']  = 22;
     757    $args['smallest'] = 8;
     758    $args['unit']     = 'pt';
     759    $args['format']   = 'list';
     760    return $args;
     761}
     762add_filter( 'widget_tag_cloud_args', 'twentyeleven_widget_tag_cloud_args' );
     763 No newline at end of file
  • src/wp-content/themes/twentyeleven/style.css

     
    23322332        font-weight: bold;
    23332333}
    23342334
     2335/* Tag Cloud UL Style Fixes */
    23352336
     2337.tagcloud ul {
     2338        list-style-type: none;
     2339}
     2340
     2341.tagcloud ul li {
     2342        display: inline-block;
     2343}
     2344
     2345
    23362346/* =Responsive Structure
    23372347----------------------------------------------- */
    23382348