Skip to content

Commit 5641287

Browse files
committed
add theme compatibility for twenty twenty-five
1 parent e121eec commit 5641287

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:where(.stk-has-block-style-inheritance.stk--is-twentytwentyfive-theme) :where(.stk-block-button .stk-button) {
2+
border-radius: 9999px;
3+
}

src/init.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ public function add_body_class_theme_compatibility( $classes ) {
458458
$classes[] = 'stk--is-twentytwentyone-theme';
459459
} else if ( function_exists( 'twentytwentytwo_support' ) ) {
460460
$classes[] = 'stk--is-twentytwentytwo-theme';
461+
} else if ( function_exists( 'twentytwentyfive_post_format_setup' ) ) {
462+
$classes[] = 'stk--is-twentytwentyfive-theme';
461463
} else if ( function_exists( 'hello_elementor_setup' ) ) { // Taken from https://github.com/elementor/hello-theme/blob/master/functions.php
462464
$classes[] = 'stk--is-helloelementor-theme';
463465
}

0 commit comments

Comments
 (0)