• Hello,

    I can see that it’s common to augment wordpress content/functionality using the child themes functions.php with the use of hooks.
    I can also achieve modifying content/functionality by copying the parent theme’s template to my child theme and making adjustments there.

    What’s recommended and why? Is there a certain point in which one method is better than the other?

Viewing 1 replies (of 1 total)
  • If you can use an action/filter, use that. If not, copy the template file to a child theme.

    The reasoning for this is that template files change over time, and if you’ve copied it to a child theme, you could easily miss updates to that file when they happen.

    • This reply was modified 5 years, 7 months ago by catacaustic.
Viewing 1 replies (of 1 total)
  • The topic ‘Copying template files VS using hooks in functions.php’ is closed to new replies.