diff --git a/includes/blocks/class-kadence-blocks-navigation-link-block.php b/includes/blocks/class-kadence-blocks-navigation-link-block.php index 119d75beb..65c1f009e 100644 --- a/includes/blocks/class-kadence-blocks-navigation-link-block.php +++ b/includes/blocks/class-kadence-blocks-navigation-link-block.php @@ -238,7 +238,7 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) { $css->render_typography( $attributes, 'dropdownDescriptionTypography' ); // navigation highlight icon size - if ( ! empty($attributes['highlightIcon']) ) { + if ( ! empty( $attributes['highlightIcon'] ) && !empty( $attributes['highlightIcon'][0]['size'] ) ) { $css->set_selector('.kb-nav-link-' . $unique_id . ' .link-highlight-label .link-highlight-icon-wrap svg' ); $css->add_property('height', $attributes['highlightIcon'][0]['size'] . 'px'); $css->add_property('width', $attributes['highlightIcon'][0]['size'] . 'px');