Make WordPress Core

Ticket #40138: 40138.2016.diff

File 40138.2016.diff, 1.2 KB (added by xkon, 7 years ago)

TwentyFifteen ul fix for tag cloud

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

     
    407407/**
    408408 * Modifies tag cloud widget arguments to have all tags in the widget same font size.
    409409 *
    410  * @since Twenty Sixteen 1.1
     410 * @since Twenty Sixteen 1.3
    411411 *
    412412 * @param array $args Arguments for tag cloud widget.
    413413 * @return array A new modified arguments.
     
    416416        $args['largest'] = 1;
    417417        $args['smallest'] = 1;
    418418        $args['unit'] = 'em';
     419    $args['format']   = 'list';
    419420        return $args;
    420421}
    421422add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args' );
  • src/wp-content/themes/twentysixteen/style.css

     
    15141514        padding: 0.5625em 0.4375em 0.5em;
    15151515}
    15161516
     1517.tagcloud ul {
     1518        list-style-type: none;
     1519}
     1520
     1521.tagcloud ul li {
     1522        display: inline-block;
     1523}
     1524
    15171525.tagcloud a:hover,
    15181526.tagcloud a:focus {
    15191527        border-color: #007acc;