• Resolved pinkerton84

    (@pinkerton84)


    Hi, just updated the kale theme on my page and the formatting is royally messed up.

    Version: 2.5.2.1599043806

    It looks like it’s loading everything vertically, with no white backing. Checked it out a smartphone and several browser on my desktop. They are all in bad shape.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi @pinkerton84, sorry to hear about the trouble!

    That version number is interesting, it looks like it may be from something different…the most recent version of Kale is 2.6, and we don’t use lengthy versioning like that on our themes. Are you by any chance using a child theme? If so, the child theme may need to be updated as well. Child themes are pretty handy if you need to override parts of the theme, but they also do require a bit more upkeep to stay current when updating the parent theme.

    If you are using a child theme, could you let us know what you used to create it or whether you created it manually? We should be able to help track down the issue and get it resolved quickly. Thanks so much!

    Thread Starter pinkerton84

    (@pinkerton84)

    Hello, sorry. Yes, I’m using version 2.6.

    I am using a child theme, which is where I grabbed that other version number from.

    In answer to your other question, no I didn’t make my own child theme. It is: kale child by LyraThemes.

    It doesn’t look like I need for the child theme, at least there is nothing prompting me for an update on my dashboard.

    Thanks so much! Do you happen to recall where you got this child theme? Most child theme generators say the child theme was by LyraThemes even though it wasn’t actually from us. We haven’t released a child theme with the free version of Kale, but we do have some sample code on GitHub that you can use in your functions.php file if you’re creating your own child theme:
    https://gist.github.com/lyrathemes/7f5c791b7351b7cadd7ab9faaba0b204

    If you used a plugin to generate your theme rather than creating it yourself, the plugin may have a reconfigure option that will update your child theme based on the current version of the Kale theme.

    Thread Starter pinkerton84

    (@pinkerton84)

    Hello, after reviewing my page building notes, I did actually create my own child theme. I also edited the php with the code on the github.

    Thanks, that’s helpful! Would you mind posting the current contents of your child theme’s functions.php file here? We can take a look and see what may need adjusted. Or if you prefer not to post it publicly, you can get in touch with us via support ticket and we can help out that way as well:
    https://www.lyrathemes.com/support/

    Thread Starter pinkerton84

    (@pinkerton84)

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘kale_child_enqueue_styles’ );
    function kale_child_enqueue_styles() {

    $parent_style = ‘kale-style’;
    $deps = array(‘bootstrap’, ‘bootstrap-select’, ‘font-awesome’, ‘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;
    }
    ?>

    Nice, thank you! This makes sense now…if you can remove this code from your child theme’s functions.php file and replace it with the latest code from that GitHub Gist, it should solve the problem. Thanks again!

    Thread Starter pinkerton84

    (@pinkerton84)

    Ok, thank you. I will do that and report back.

    Thread Starter pinkerton84

    (@pinkerton84)

    Steven, awesome. Thank you. The page formatting has returned to normal. Really happy we can get that worked out without any major issues.

    Thank you again.

    So happy to hear that- thanks for letting us know! ??

    I just wanted to thank you for this. I have a Kale Child theme and when I updated to 2.6 today I had the same issue. Replacing the child theme’s functions with the new sample from GitHub, solved my issue too.

    https://gist.github.com/lyrathemes/7f5c791b7351b7cadd7ab9faaba0b204

    Thank you so much for sharing that, Amy…glad you were able to get that resolved!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Page not load correctly after current update (Nov 28 2022’ is closed to new replies.