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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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