Home Forums WoodMart support forum Override PHP files

Override PHP files

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

    Shopix
    Participant

    Hello,

    We have a lot of custom features or changes that we want to make to the Woodmart demo theme that we imported. Is it in any way possible to implement this changes or override PHP files from the Woodmart theme in such manner that updating Woodmart theme will not result in lost of changes?

    Thank you!

    #212068

    Hello,

    Please install and activate the child theme of Woodmart and add all your customization PHP code to the functions.php of the child theme.

    Each time you will update the theme, you need to update the parent theme and never update the child.

    In this case, all your customization will be never lost.

    Best Regards

    #213182

    Shopix
    Participant

    Hi Elise,

    And this can be done for every single file of the parent theme? For example, we’re defining a new footer layout (so touching multiple files).

    Any option to customize without touching the parent theme so changes will not get lost on update?

    Thanks!

    #213230

    Hello,

    You need to install the child theme and then all the PHP snippets are inserted in functions.php JS in the Theme Settings > Custom JS, CSS in the Theme Settings > Custom CSS. In this case, all the settings, customization are contained in the child theme and would remain after you update the parent theme.

    Best Regards

    #213236

    Shopix
    Participant

    Hello Elise,

    Can you please detail what you mean by snippets? Our customization also include changes to PHP, CSS, JS files and so on.

    #213309

    Hello,

    A snippet is an independent code part. I mean completed part of code, which can be copied pasted.

    JS in the Theme Settings > Custom JS,
    CSS in the Theme Settings > Custom CSS.

    Best Regards

    #213828

    Shopix
    Participant

    Hi Elise,

    So basically we should override the functions that we want to customize in our functions.php. So it’s pretty much the standard WP approach.

    Thanks, topic can be closed.

    #213952

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘Override PHP files’ is closed to new replies.