• Resolved giulianoromano

    (@giulianoromano)


    Hi everyone!
    On the https://www.portalituristici.it website (under development) I use the Blocksy theme with a child theme.
    The latest Blocksy update breaks my layout, showing me a narrow page instead of the wide page like on the home page.
    Can anyone help me figure out how to fix it?
    At the bottom of the page are the error logs.
    A thousand thanks!
    Julian

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @giulianoromano

    From what I can see, the error is actually not related to the update, but to some custom PHP code that you have added in the child theme.

    The file that errors out is home/porttur/public_html/wp-content/themes/costiera-amalfitana/sidebar.php:16

    The theme looks like some sort of a child theme for Blocksy with added code.

    Unfortunately, we are not able to offer support for debugging or maintaining custom code. It would be recommended to contact the developer who has implemented this code to update it, if needed.

    Hope this clears things up!

    Thanks.

    Thread Starter giulianoromano

    (@giulianoromano)

    Hi Eduard, thanks for reply.

    The sidebar.php has following code

    <?php
    /**
     * The sidebar containing the main widget area
     *
     * @link https://developer.www.ads-software.com/themes/basics/template-files/#template-partials
     *
     * @package Blocksy
     */
    
    /**
     * Note to code reviewers: This line doesn't need to be escaped.
     * The value used here escapes the value properly.
     * It's the actual WordPress sidebar content.
     */
            
    echo blocksy_render_sidebar();
    

    It works with old (father) Blocksy version, but not works with update to latest Blocksy father version…

    I dont understand why…

    Thread Starter giulianoromano

    (@giulianoromano)

    Ok, i solved!

    I changed the content of sidebar.php in chil theme

    from

    <?php
    /**
     * The sidebar containing the main widget area
     *
     * @link https://developer.www.ads-software.com/themes/basics/template-files/#template-partials
     *
     * @package Blocksy
     */
    
    /**
     * Note to code reviewers: This line doesn't need to be escaped.
     * The value used here escapes the value properly.
     * It's the actual WordPress sidebar content.
     */
            
    echo blocksy_render_sidebar();

    to

    <?php
    /**
     * The sidebar containing the main widget area
     *
     * @link https://developer.www.ads-software.com/themes/basics/template-files/#template-partials
     *
     * @package Blocksy
     */
    
    $sidebar = new \Blocksy\Sidebar();
    
    /**
     * Note to code reviewers: This line doesn't need to be escaped.
     * The value used here escapes the value properly.
     * It's the actual WordPress sidebar content.
     */
    echo $sidebar->render();

    and now it works!

    Many thanks for Your suggestion ??

    There we go, @giulianoromano. ??

    Take care.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Broken Layout afte update’ is closed to new replies.