diff --git a/includes/blocks/class-kadence-blocks-accordion-block.php b/includes/blocks/class-kadence-blocks-accordion-block.php index 3fb2ecf51..fa101134f 100644 --- a/includes/blocks/class-kadence-blocks-accordion-block.php +++ b/includes/blocks/class-kadence-blocks-accordion-block.php @@ -147,7 +147,7 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) { 'mobile_key' => 'paddingMobile', ); $css->render_measure_output( $title_styles, 'padding', 'padding', $padding_args ); - $css->set_selector( '.kt-accordion-wrap.kt-accordion-id' . $unique_id . ' > .kt-accordion-inner-wrap > .kt-accordion-pane > .kt-accordion-header-wrap' ); + $css->set_selector( '.kt-accordion-wrap.kt-accordion-id' . $unique_id . ' > .kt-accordion-inner-wrap > .kt-accordion-pane:not(:first-child) > .kt-accordion-header-wrap' ); $css->render_range( $title_styles, 'marginTop', 'margin-top' ); // Override for Kadence Theme.