Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #874532
    Frank S
    Participant

    Dear Themeco,

    I tried to update to the newest version of X, (April 9th, 2016), but upon doing so my site completely breaks! I reverted back to the old theme.

    Is there a link to any information on what to do when this happens? Should I just wait for the next update and hope for the best that the next one does not break my site?

    I own 3 X licenses now, one for me and two for friends that I have built sites for. I need to know what to do when an update breaks the sites.

    Please let me know. Thanks.

    #874978
    Christian
    Moderator

    Hey Frank,

    If you’re using the old child theme structure, that could be the case. Please see https://community.theme.co/forums/topic/child-theme-updates/ for more details.

    Basically, to fix this quickly, please add the code below in your functions.php

    // Enqueue Parent Stylesheet
    // =============================================================================
    
    add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );

    Then, delete the @import line in your style.css

    Hope that helps. 🙂

    #879070
    Frank S
    Participant

    Please forgive the ignorance. But should the final functions.php code include all below or should any part be deleted?

    <?php

    // =============================================================================
    // FUNCTIONS.PHP
    // —————————————————————————–
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================

    // Enqueue Parent Stylesheet
    // =============================================================================

    add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );

    Also, do I just delete the @import line in style.css? Do I not need to replace it with anything? Thank you very much.

    #879736
    Christopher
    Moderator

    Hi there,

    Yes, both are correct.

    If you need further assist provide us with URL and login credentials.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-874532 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>