0

Parent Theme loads some template files in its functions.php as follows:

get_template_part ('lib/login/register.php');

I want to remove this file in child theme and include my custom php templates.

How can I remove get_template_part function from parent theme.

Thanks

1 Answer 1

0

Copy the file to your child theme,

In your child theme, create a template and name it what ever you want, e.g content-child.php

Now you can replace lib/login/register.php with your new template:

<?php get_template_part( 'content-child', get_post_format() ); ?>

It should work.

0

Your Answer

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

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