Support » Theme: Customizr » REGRESSION! Latest update COMPLETELY BREAKS existing Child Themes!

  • We had a carefully crafted Child Theme of Customizr that had worked fine up until now. When we updated to v4.1.28 of Customizr, the Child Theme is now broken and displays the site as completely unstyled HTML. For now we’re switching back to the Parent Theme and seeing how well we can make it match what we had.

    # SITE_URL: https://robinsonsrescue.org/wp
    # HOME_URL: https://robinsonsrescue.org
    # IS MULTISITE : No

    # THEME | VERSION : customizr | v4.1.28# WP VERSION : 5.0.3
    # PERMALINK STRUCTURE : /%year%/%monthnum%/%day%/%postname%/

    # ACTIVE PLUGINS :
    The Events Calendar: 4.8.1

    PHP Version: 5.6.36
    MySQL Version: 5.6.34-log
    Web Server Info: Apache

    WordPress Memory Limit: 40MB
    PHP Memory Limit: 256M
    PHP Upload Max Size: 64M
    PHP Post Max Size: 65M
    PHP Upload Max Filesize: 64M
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    PHP Arg Separator: &
    PHP Allow URL File Open: Yes
    WP_DEBUG: Disabled

    Show On Front: nothing
    Page On Front: (#0)
    Page For Posts: (#0)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • VERY CRITICAL: Part of the reason we had a Child Theme was to insert vital affiliate tracking code into the <head> of each page. This is no longer working! For now I’m going to have to hand-modify the Parent Theme’s header.php file, and I really don’t want to have to do that!

    Same thing happened for us. We had to switch back to previous version of theme to get styles of site working again.

    Theme Author Nicolas GUILLAUME

    (@nikeo)

    Hello,
    The parent’s header has been updated in the latest version.
    The call to wp_head() which used to be made in a hook, is now done directly in the header.php file. This was required to ensure compatibility with plugins looking for wp_head() call in the header template file.
    The changes in header.php are here : https://github.com/presscustomizr/customizr/commit/8202e682d9186435a6a832efefde91fce4f03da3#diff-1c1ae65fe9828eb6d3cee4edacf90018

    To fix your problem, you need to update your child theme’s header.php with the latest parent’s version. And then add back your specific tracking codes or any customizations you need to make.

    A recommended and safe way to add code to the <head> is to hook at wp_head from your child theme’s functions.php file. This way you’ll act sort of remotely instead of overriding directly the parent’s template, and therefore avoid potential issues when the parent’s template is modified.

    I hope this will help!
    Thanks for reporting this, I’ve updated the latest release post with a note for child theme’s developer about this.

    Works great now. Thank you very much for clarifying how to update new version of theme.

    Theme Author Nicolas GUILLAUME

    (@nikeo)

    OK thanks for the feedback @andrew55

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘REGRESSION! Latest update COMPLETELY BREAKS existing Child Themes!’ is closed to new replies.