Home › Forums › Space themes support forum › Tabs dont work in html block › Reply To: Tabs dont work in html block
May 8, 2023 at 5:58 pm
#465400
Luke Nielsen
Keymaster
Hello,
Please add the below code to the functions.php file in your child theme.
if ( ! function_exists( 'xts_register_scripts' ) ) {
/**
* Register scripts.
*
* @since 1.0.0
*/
function xts_register_scripts() {
$config = xts_get_js_scripts();
$minified = xts_get_opt( 'minified_js' ) ? '.min' : '';
if ( xts_is_combined_needed( 'scripts_combined_js' ) ) {
return;
}
foreach ( $config as $key => $scripts ) {
foreach ( $scripts as $script ) {
$src = XTS_THEME_URL . $script['file'] . $minified . '.js';
if ( 'scripts' !== $script['name'] ) {
wp_register_script( 'xts-' . $script['name'], $src, array( 'xts-scripts' ), XTS_VERSION, $script['in_footer'] );
} else {
wp_register_script( 'xts-' . $script['name'], $src, array(), XTS_VERSION, $script['in_footer'] );
}
}
}
}
add_action( 'wp_enqueue_scripts', 'xts_register_scripts', 20 );
}
Then clear the cache and check the issue again.
Kind Regards