• thetoolman123

    (@thetoolman123)


    Hi,

    I have WP Job Manager installed with a theme.

    I am trying to edit a file called

    /themes/jobseek/inc/job-manager.php

    I have checked with the theme developer on how to edit this file and they have told me I need to create a hook for it as the files in the parent directory get overwritten when the theme is updated.

    I’ve tried to save the same file in the child theme:
    /themes/jobseek-child/inc/job-manager.php

    but the file doesn’t update on the front-end.

    Can anyone help me on how to create a hook?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    That would depend on the code you want to override… I would talk to the theme authors and get them to specify in greater detail with an example if possible. I would also be transparent and say this is the first time you’re doing this, so you would really appreciate as much help as they can give.

    Thread Starter thetoolman123

    (@thetoolman123)

    Thank I have asked them.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Creating hooks for parent/child theme file’ is closed to new replies.