• Hi there (Ashish?)

    Today i updated the Zakra theme to the latest version (i alway updrate), this is version 1.3.0.

    But it completely messed up my layout… Screen contents ius very small on my 4K screen. Please refer to the site (https://vmvklu.nl). Not a clue what i can do to manage this…

    Extra info: It sizes the screen as if it is a tablet in portrait (layout preview in WP). It doesn’t seem to recognise the widescreen?

    EDIT: I see a lot of topics regarding this issue in the Zakra forum… Please rollback this update as it seems to be corrupting a lot!

    Cheers Rob

    • This topic was modified 5 years, 2 months ago by rob32.
    • This topic was modified 5 years, 2 months ago by rob32.
    • This topic was modified 5 years, 2 months ago by rob32.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello Rob,
    While checking your site, there is a bunch of code appearing which seems not come from the theme which looks like this:

    body {
        background: #fff;
        color: #444;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        margin: 2em auto;
        padding: 1em 2em;
        max-width: 700px;
        -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
    }

    Please remove max-width: 700px; if you find where the code is appearing from. If not, you can simply add this CSS inside Customize > Additional CSS:

    body {
        max-width: unset;
    }

    I hope this helps. If not, please feel free to ask again.

    Thread Starter rob32

    (@rob32)

    Weel, that doesn’t work. I dont’t have a clue why this happened directly after upgrading Zakra to 1.3.0.
    I was away for a few days, so nothing could have changed in the meantime.

    I will search that value tho.

    It appears to be in the footer (coming from Zakra?). I would like to add a screenshot here, but that is not possible.

    I’ll let you know, but i tend to rollback a backup of the master theme…

    • This reply was modified 5 years, 2 months ago by rob32.
    • This reply was modified 5 years, 2 months ago by rob32.
    Thread Starter rob32

    (@rob32)

    UPDATE: The problem is in the widget area. Looking at the widgets i cannot see the footer widgets, and get an error at the bottom of the screen where the widgets normally are.
    I’m hesitating to rollback anything; it clearly must be something simple.

    This is the homepage from my dev site, without the theme upgrade: https://vmvklu.vonjot.nl/.

    This is the live site, with upgrade: https://www.vmvklu.nl/.

    Please note the footers!

    • This reply was modified 5 years, 2 months ago by rob32. Reason: Additional info
    Thread Starter rob32

    (@rob32)

    DEBUGGING: Found this in the Chiold Theme configurator.
    Can you help me out how to solve this ASAP???

    Fatal error: Uncaught Error: Call to undefined function zakra_footer_widget_cotainer_class() in /home/vmvklu1q/public_html/wp-content/themes/zakra-child/sidebar-footer.php:15
    Stack trace:
    #0 /home/vmvklu1q/public_html/wp-includes/template.php(722): require_once()
    #1 /home/vmvklu1q/public_html/wp-includes/template.php(671): load_template(‘/home/vmvklu1q/…’, true)
    #2 /home/vmvklu1q/public_html/wp-includes/general-template.php(111): locate_template(Array, true)
    #3 /home/vmvklu1q/public_html/wp-content/themes/zakra/inc/hooks/footer.php(57): get_sidebar(‘footer’)
    #4 /home/vmvklu1q/public_html/wp-includes/class-wp-hook.php(286): zakra_footer_widgets(”)
    #5 /home/vmvklu1q/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #6 /home/vmvklu1q/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #7 /home/vmvklu1q/public_html/wp-content/themes/zakra-child/footer.php(39): do_action(‘zakra_action_fo…’)
    #8 /home/vmvklu1q/public_html/wp-includes/template.php(722): require_once(‘/home/vmvkl in /home/vmvklu1q/public_html/wp-content/themes/zakra-child/sidebar-footer.php on line 15

    This is the sidebar-footer.php (please look at the enhanced code; seems to be a typo there!):

    <?php
    /**
    * The sidebar containing the footer widget area
    *
    * @link https://developer.www.ads-software.com/themes/basics/template-files/#template-partials
    *
    * @package zakra
    */

    if ( ! is_active_sidebar( ‘footer-sidebar-1’ ) && ! is_active_sidebar( ‘footer-sidebar-2’ ) && ! is_active_sidebar( ‘footer-sidebar-3’ ) && ! is_active_sidebar( ‘footer-sidebar-4’ ) ) {
    return;
    }
    ?>

    <div class=”tg-footer-widget-container <?php zakra_footer_widget_cotainer_class(); ?>”>
    <?php for ( $i = 1; $i <= 4; $i++ ) { ?>
    <div class=”tg-footer-widget-area footer-sidebar-<?php echo esc_attr( $i ); ?>”>
    <?php if ( is_active_sidebar( ‘footer-sidebar-‘ . $i ) ) : ?>
    <?php dynamic_sidebar( ‘footer-sidebar-‘ . $i ); ?>
    <?php endif; ?>
    </div>
    <?php } ?>
    </div> <!– footer-widgets –>

    • This reply was modified 5 years, 2 months ago by rob32.
    • This reply was modified 5 years, 2 months ago by rob32.
    • This reply was modified 5 years, 2 months ago by rob32.

    It seems there is a typo in the function : zakra_footer_widget_cotainer_class in zakra-child/sidebar-footer.php. Please try changing it to zakra_footer_widget_container_class

    Thread Starter rob32

    (@rob32)

    Oh, but i did that, and the complete site layout disappeared like there was no stylesheet at all. Top menu was displayed as a UL, no more sidebar (also displayed as UL under the page content) etc.
    I had to copy the child theme settings from my development site to repair that.

    So it doesn’t seem to be a typo, there is more to it. I have disabled the footer in the theme configurator, now the site looks good again. But i’ve lost my footers completely now. Cannot use them anymore, however they are present in the WP-widget config outside the theme settings (WP-Admin/widgets). But still they don’t show up on the site layout.

    Thread Starter rob32

    (@rob32)

    I just see you released 1.3.1. What are the changes? Will it help me with my issues?

    TI, Rob

    Thread Starter rob32

    (@rob32)

    Hi Ashish,
    Could not wait any longer. Restored the whole site back to short before installing the update to 1.3.0. All issues are gone now!
    I will not do another update until i’m sure it won’t happen again…

    Pleas elet me know how this happened.

    Hi, Rob,
    The code generated in your site previously shouldn’t come from the theme. So, since it’s hard for me to debug from here as I need detailed information, can you please contact us via zakratheme.com Chat Support so that we can figure it out what is causing the issue.

    Thanks.

    Thread Starter rob32

    (@rob32)

    Thanks Ashish! I just opened a chat…

    Thread Starter rob32

    (@rob32)

    Hi Ashish,

    Did some research. On my dev environment i have 1.2.4 installed; works fine. Disabled all kind of plugins, and upgraded to 1.3.2 (released today). Same result!

    So renamed the Zakra theme directory, copied the original folder from a backup, and all is OK again.

    Perhaps this helps with the support. I have contacted support, but still no answer or reaction from them.

    Please look into this once again…

    Thanks, Rob

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Latest update screwed up layout’ is closed to new replies.