Home New Guten Forums WoodMart support forum Customising with child theme

Customising with child theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #399696

    fineorganics
    Participant

    I edited your pho files to design the login and registration, but I understand that after updating the theme, all my changes will be destroyed. How do I copy the necessary files to the child theme and force the theme to take files from the child how style.css and function.php?

    #399735

    Luke Nielsen
    Keymaster

    Hello,

    The custom code from the style.css file you can just copy to Theme Settings -> Custom CSS and it will work after any update.

    The custom PHP code you should enter to the functions.php file in your child theme. The functions.php file in the child theme has a higher priority so the theme, first of all, will take the code from there.

    https://prnt.sc/2OI3hpsZCAsD

    Feel free to reach out so we can discuss possible options moving forward.

    Kind Regards

    #399759

    fineorganics
    Participant

    I know about that, thanks. My question is how to copy template-tags.php into my child theme folder to customising and make higher priority then theme?

    #399812

    Luke Nielsen
    Keymaster

    Hello,

    Sorry, but the template-tags.php file cannot be changed via the child theme, you should copy the functions from the template-tags.php file and paste them into the functions.php file in the child theme (e.g you need to change the verify popup, therefore, you copy the function from the template-tags.php file and paste it to the functions.php and change it as you need there ).

    https://prnt.sc/SRXnNEbi8tch

    Feel free to reach out so we can discuss possible options moving forward.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)