Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1267344
    rwoodmass
    Participant

    Hello!

    I wanted to add some code to functions.php, so I did so on my child theme (created the file and added the code).
    When I loaded the site, the styling was off.

    So, I deleted the functions.php file from the child theme, but when I reloaded the site, the styling was still off.

    Please help – thank-you!

    christine-guenette.com is the website.

    #1267623
    Jade
    Moderator

    Hi there,

    Would you mind specifying what code you added on the child theme?

    Kindly try to remove the code and let us know what you are trying to achieve so that we can give you suggestions.

    Thank you.

    #1268717
    rwoodmass
    Participant

    Hello!

    I added this code:

    /**
     * @snippet       WooCommerce: Redirect to Custom Thank you Page
     * @how-to        Watch tutorial @ https://businessbloomer.com/?p=19055
     * @sourcecode    https://businessbloomer.com/?p=490
     * @author        Rodolfo Melogli
     * @testedwith    WooCommerce 2.5.5
     */
     
    // Redirect custom thank you
     
    add_action( 'woocommerce_thankyou', 'bbloomer_redirectcustom');
     
    function bbloomer_redirectcustom( $order_id ){
        $order = new WC_Order( $order_id );
     
        $url = 'http://yoursite.com/custom-url';
     
        if ( $order->status != 'failed' ) {
            wp_redirect($url);
            exit;
        }
    }

    I immediately removed the entire functions.php file from the Child Theme folder, so it’s already gone.

    Thanks!

    #1268802
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again

    Thanks.

    #1269819
    rwoodmass
    Participant

    No – you did not understand. Even though the code is removed, the styling is still off on the site.

    Please help!

    #1269820
    rwoodmass
    Participant

    If you visit the site, you will see what is wrong. Among other minor issues, the navigation is not showing properly.

    #1269829
    Joao
    Moderator

    Hi There,

    ould you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    Joao

    #1270705
    rwoodmass
    Participant
    This reply has been marked as private.
    #1270841
    Nabeel A
    Moderator

    Hi again,

    It looks like your Child Theme is corrupted, I activated your parent theme and everything started to work as expected. Try re-installing your Child Theme and make sure you backup your modified files.

    Hope this helps!

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