Make WordPress Core


Ignore:
Timestamp:
06/08/2021 01:54:27 AM (5 years ago)
Author:
noisysocks
Message:

Make new WordPress installations use blocks in widget areas instead of widgets

Modifies wp_install_defaults() so that when you install a new WordPress site you
have block in your widget areas, not widgets.

Fixes #53324.
Props isabel_brison, hellofromtonya, andraganescu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/06-components/widgets.scss

    r49987 r51088  
    7676}
    7777
    78 .widget-title {
    79         font-size: var(--global--font-size-sm);
    80         font-weight: var(--widget--font-weight-title);
    81         line-height: var(--widget--line-height-title);
     78.widget {
     79
     80        h1,
     81        h2,
     82        h3,
     83        h4,
     84        h5,
     85        h6 {
     86                font-weight: var(--widget--font-weight-title);
     87                line-height: var(--widget--line-height-title);
     88        }
     89
     90        h1 {
     91                font-size: var(--global--font-size-md);
     92        }
     93
     94        h2 {
     95                font-size: var(--global--font-size-sm);
     96        }
     97
     98        h3 {
     99                font-size: var(--global--font-size-xs);
     100        }
     101
     102        h4 {
     103                font-size: var(--global--font-size-xs);
     104        }
     105
     106        h5 {
     107                font-size: var(--global--font-size-xs);
     108        }
     109
     110        h6 {
     111                font-size: var(--global--font-size-xs);
     112        }
    82113}
    83114
Note: See TracChangeset for help on using the changeset viewer.