• Have created a child theme with a style.css.

    Now do I have to copy all the php files from the Parent theme into the Child theme’s folder? Files like the header.php, home.php, footer.php etc.

    Secondly, what is required to be done if the Header needs to be customized?

    Thirdly, say the theme’s header or the theme itself gets updated with new features, options and plugins. Will that automatically become available in the Child theme?

    Regards,
    Edwin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey Edwin,

    Great question – the answer is no!

    If the child theme has been set up correctly, then it pulls the files from the parent theme folder. This then answers your last question about updates – because it’s pulling the info from the parent theme, it will update correctly! (That’s why, we emphasise to create a child theme/ rather than editing core theme folders/files because once updated, it wipes the changes. )

    The child theme will work exactly the same!

    Say if you wanted to edit the header.php file, then simply just copy that file from the parent folder – and edit/change the code to your desires!

    Hope this clears up a few questions!:) (If so, please mark resolved!)

    If you require any further assistance, please don’t hesitate to contact me!

    Have a great weekend!

    Bobby

    Thread Starter eddyferns

    (@eddyferns)

    Hello Bobby,

    Thank you for your reply.

    Speaking of the child theme setup, which would be the correct way – using the import line in the Style.css or through the functions.php as suggested by some of the premium theme sellers?

    About the header.php, once I copy it from the parent theme to the child theme and do some minor customization. And later when the theme’s header gets updated with new features or whatever. Will then these new add-ons/changes reflect in the child theme’s header or header.php?

    Best regards,
    Edwin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Theme’ is closed to new replies.