0

Can I move (copy) a author.php of a theme of my website to another different theme author.php file. I would like to have the author template on another theme. Is this possible?

1 Answer 1

0

You technically can, but you probably won't get the full results you're looking for. The PHP won't contain the styling, and it may contain different CSS classes than the second site's theme uses, meaning things won't look the same.

The other issue you're likely to run into is that if you put a file directly into a theme, then whenever you update that theme, your author.php will be overwritten. Anytime you make changes, unless you're using a totally custom theme already that won't be updated by anyone else, it's best practice to create a child theme.

So, to use one theme's author.php on another site, you will want to:

  1. Create a child theme
  2. Copy the author.php file into the child theme
  3. Copy the styles that affect author.php into the child theme
  4. And, most likely, do some additional CSS and/or author.php updates (such as changing div classes) so that it both keeps the look and feel from the old site, and also matches the new site.

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.