rustichic
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Kale] Kale theme update to version 2.9 broke my siteWill do! Again, thank you so much for your expertise!
Forum: Themes and Templates
In reply to: [Kale] Kale theme update to version 2.9 broke my siteThank you Steven! Now just to confirm, this won’t change anything on my site, it just removes the dependency so the Kale theme can continue to be updated and it won’t impact the child theme?
Much appreciated!
Forum: Themes and Templates
In reply to: [Kale] Kale theme update to version 2.9 broke my siteThank you Steven for your response! I’ve had this site with Kale and the child theme for years, and this is the first time a Kale update has impacted it. And I certainly appreciate all your help, because I’m in no way shape or form a developer. Here are the contents of the functions.php file for the Kale Child Theme: <?php
add_action( ‘wp_enqueue_scripts’, ‘kale_child_enqueue_styles’ );
function kale_child_enqueue_styles() {$parent_style = ‘kale-style’;
$deps = array(‘bootstrap’, ‘bootstrap-select’, ‘fontawesome’, ‘fontawesome-all’, ‘owl-carousel’);
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ , $deps);wp_enqueue_style( ‘kale-style-child’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ), wp_get_theme()->get(‘Version’) );
}function kale_get_option($key){
global $kale_defaults;$parent_theme = get_template_directory();
$parent_theme_slug = basename($parent_theme);
$parent_theme_mods = get_option( “theme_mods_{$parent_theme_slug}”);$value = ”;
$child_value = get_theme_mod($key);if(!empty($child_value)){
$value = $child_value;
}
else if (!empty($parent_theme_mods) && isset($parent_theme_mods[$key])) {
$value = $parent_theme_mods[$key];} else if (is_array($kale_defaults) && array_key_exists($key, $kale_defaults))
$value = get_theme_mod($key, $kale_defaults[$key]);
return $value;
}
?>