Home Forums WoodMart support forum Child theme overrides

Child theme overrides

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #256194

    Panosgr
    Participant

    Which is the best way to override the parent theme folders and files?
    Just copy the exact structure inside the child theme?

    Lets say we must change this file
    woocommerce/myaccount/form-login.php

    We should copy the whole structure (folders/subfolders etc) in the child theme and make all the changes in that child file?

    #256338

    Artem Temos
    Keymaster

    Hello,

    You need to copy template files to the exact place in the child theme folder and edit. Note that you can copy only core WordPress templates files like index.php, single.php, header.php and woocommerce/ folder with templates.

    Kind Regards

    #256351

    Panosgr
    Participant

    So, all in all.
    I have to copy the whole woocommerce folder in the child theme and make the changes in the child themes files.
    Is that right?

    #256352

    Artem Temos
    Keymaster

    Actually, you can copy only a few files. Not necessary to copy the whole folder. But you have to keep the structure. So the path should be woodmart-child/woocommerce/myaccount/form-login.php.

    Kind Regards

    #256355

    Panosgr
    Participant

    Yes of course, i understand about the structure.
    I will copy only the files that i need to change

    #256357

    Artem Temos
    Keymaster

    Exactly, you just need to copy the files you need to change.

    #256358

    Panosgr
    Participant

    Great, thanks

    #256359

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘Child theme overrides’ is closed to new replies.