0

I'm working with a paid theme, and we're using a child theme to display a slightly different design.

The parent theme has a file called /includes/forms/register-form.php

I'd like to customise this file, and save it in my child theme.

How do I tell Wordpress to use my child theme's version of this file, instead of my parent theme's version?

1
  • How is the file loaded in the parent theme? Based on the answer to that question, your answer is either below, or "you can't".
    – Milo
    Commented Nov 27, 2013 at 6:29

1 Answer 1

2

Just copy register-form.php from your parent theme and paste it under yourchildtheme/includes/forms/register-form.php , from there start changes what you want and wordpress will use that file.

6
  • Are you sure? I have tried this in the past, and it has not worked for non-template files.
    – Steve
    Commented Nov 27, 2013 at 5:21
  • @Steve yes, you can try to try <?php echo "hello"; ?> in very start of new copy template and see if that gets printed.
    – localhost
    Commented Nov 27, 2013 at 5:29
  • 4
    Whether or not this works depends on how the parent theme is loading the file. This is not guaranteed to work. It really depends a lot on the theme.
    – s_ha_dum
    Commented Nov 27, 2013 at 5:39
  • That's what I though s_ha_dum. I did a search in folder for text using Notepad++, and the only mention of register-form.php in the theme folder was in themefolder\jobroller.pot, which is a language file.
    – Steve
    Commented Nov 27, 2013 at 8:19
  • 1
    It turns out @Nofel is correct!
    – Steve
    Commented Nov 27, 2013 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.