Why is the .button class not targeted in this theme?
-
Hi,
We’ve noticed while testing the twentytwentythree theme that it includes styles for buttons like this:
.wp-element-button, .wp-block-button__link { background-color: var(--wp--preset--color--primary); border-radius: 0; border-width: 0; color: var(--wp--preset--color--contrast); font-family: inherit; font-size: inherit; line-height: inherit; padding: calc(0.667em + 2px) calc(1.333em + 2px); text-decoration: none; }
Why does this theme only target these elements and not
.button
? The button class is important, all previous core themes targeted the.button
element and lots of plugins which add custom buttons to the WordPress frontend often use the class.button
– if you are using one of these plugins and are using twentytwentythree you don’t get a button and just a text link because it doesn’t target that class any more.twentytwentythree (no styling applied):
twentytwentytwo (styling applied):
twentytwentyone (styling applied):
Same for all other core themes except twentytwentythree ^^^
Thank you,
- The topic ‘Why is the .button class not targeted in this theme?’ is closed to new replies.