- This topic has 30 replies, 4 voices, and was last updated 3 years, 3 months ago by Tom.
-
AuthorPosts
-
December 14, 2020 at 6:47 am #1579920Sourabh
Does it the safe way, post using this my site will not break ??
December 14, 2020 at 9:35 am #1580338DavidStaffCustomer SupportCorrectly using the Child Theme or using Codes Snippets will not break your site.
I don’t believe the issue you were having had anything to do with your child theme. It looked more like an issue with your server not finding the correct files.As i said before – if it breaks again, speak to your host to see what server errors were logged.
December 14, 2020 at 10:38 am #1580440SourabhRefer below snapshot David –
https://www.dropbox.com/s/tfpnmh8p8v1jfg7/chid%20theme%20error.png?dl=0
If I am wrong then make me correct, However, I have already dropped an email to my host, Let see what do they revert…!!!
Regds:
December 15, 2020 at 5:06 am #1581331DavidStaffCustomer SupportCan you speak with your host to find out what the actual error was ?
December 15, 2020 at 6:00 am #1581394SourabhI have dropped them an email so waiting for a revert…will update you accordingly.
December 15, 2020 at 8:08 am #1581705DavidStaffCustomer SupportOK.
If it persists and they cannot provide an error then maybe you should use the Code Snippets pluging 🙂
Let us knowDecember 15, 2020 at 8:12 am #1581713SourabhOkay i will update you,
David one more thing , as per your articles –
Avoid loading style.css of the child theme
If the child theme’s style.css file is empty and you’d like to avoid loading it, try this PHP snippet below:add_action( ‘wp_enqueue_scripts’, function() {
wp_dequeue_style( ‘generate-child’ );
}, 50 );Should i need to add this PHP or its already been pre-added into the available child theme ??
December 15, 2020 at 12:48 pm #1582029TomLead DeveloperLead DeveloperYou’ll want to add that to your functions.php file in order to stop it from loading 🙂
December 18, 2020 at 7:40 am #1586078Sourabhohk, So does it affect something in the current site if I do it now ??
I thought you peoples have done it already, (Now I downloaded the child theme from the GP site).
December 18, 2020 at 1:08 pm #1586454TomLead DeveloperLead DeveloperIf you add the function, it will remove the child theme stylesheet. If you don’t, the child theme stylesheet will load automatically if the child theme is active.
December 19, 2020 at 1:50 am #1586763SourabhIt does not solve my question, Tom, I read it in your documentation that what happens if I add that a line of code, but my question was –
does it affect something in the current site if I do it now ??
I mean if I add that code and it removes the stylesheet so does it affect my site in any way (Any style or any function)?? or it will work smoothly so that accordingly I will take an action…!!!
December 19, 2020 at 6:42 am #1586999DavidStaffCustomer SupportIf your child theme style sheet is empty then it will not make any difference to your site using that snippet.
December 19, 2020 at 9:15 am #1587294SourabhSo by default is it empty ??
This means when we download it from the GP portal ??
December 19, 2020 at 1:01 pm #1587462TomLead DeveloperLead DeveloperYes, by default it is empty.
December 20, 2020 at 1:46 am #1587802SourabhOKay, thanks Tom & David
-
AuthorPosts
- You must be logged in to reply to this topic.