Tagged: x
-
AuthorPosts
-
November 22, 2016 at 3:17 pm #1267344
rwoodmassParticipantHello!
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.
November 22, 2016 at 7:31 pm #1267623
JadeModeratorHi 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.
November 23, 2016 at 4:25 pm #1268717
rwoodmassParticipantHello!
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!
November 23, 2016 at 6:43 pm #1268802
NicoModeratorHappy to hear that.
Feel free to ask us again
Thanks.
November 24, 2016 at 1:34 pm #1269819
rwoodmassParticipantNo – you did not understand. Even though the code is removed, the styling is still off on the site.
Please help!
November 24, 2016 at 1:35 pm #1269820
rwoodmassParticipantIf you visit the site, you will see what is wrong. Among other minor issues, the navigation is not showing properly.
November 24, 2016 at 1:56 pm #1269829
JoaoModeratorHi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
Joao
November 25, 2016 at 10:48 am #1270705
rwoodmassParticipantThis reply has been marked as private.November 25, 2016 at 2:04 pm #1270841
Nabeel AModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1267344 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
