[Resolved] Child Theme Making Issue

Home Forums Support [Resolved] Child Theme Making Issue

Home Forums Support Child Theme Making Issue

Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • #1579920
    Sourabh

    Does it the safe way, post using this my site will not break ??

    #1580338
    David
    Staff
    Customer Support

    Correctly 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.

    #1580440
    Sourabh

    Refer 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:

    #1581331
    David
    Staff
    Customer Support

    Can you speak with your host to find out what the actual error was ?

    #1581394
    Sourabh

    I have dropped them an email so waiting for a revert…will update you accordingly.

    #1581705
    David
    Staff
    Customer Support

    OK.
    If it persists and they cannot provide an error then maybe you should use the Code Snippets pluging 🙂
    Let us know

    #1581713
    Sourabh

    Okay 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 ??

    #1582029
    Tom
    Lead Developer
    Lead Developer

    You’ll want to add that to your functions.php file in order to stop it from loading 🙂

    #1586078
    Sourabh

    ohk, 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).

    #1586454
    Tom
    Lead Developer
    Lead Developer

    If 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.

    #1586763
    Sourabh

    It 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…!!!

    #1586999
    David
    Staff
    Customer Support

    If your child theme style sheet is empty then it will not make any difference to your site using that snippet.

    #1587294
    Sourabh

    So by default is it empty ??

    This means when we download it from the GP portal ??

    #1587462
    Tom
    Lead Developer
    Lead Developer

    Yes, by default it is empty.

    #1587802
    Sourabh

    OKay, thanks Tom & David

Viewing 15 posts - 16 through 30 (of 31 total)
  • You must be logged in to reply to this topic.