wordpress modifying single.php file, theme update


If i need modify some code in theme files (like remove date or author ... without using css) in single.php, which the best approach, to prevent replacing files when update theme.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Hube02Connect With a Mentor Commented:
Create a child theme, information can be found here: http://codex.wordpress.org/Child_Themes

It's pretty simple as your child theme really only needs a CSS file.

Once that is done, copy single.php from the parent theme into your child theme folder and make the changes there. Your now single.php file will override the parent template.
Jason C. LevineConnect With a Mentor No oneCommented:
And child themes are never overwritten when the parent theme updates.

(No points for my post, please. I'm just adding a clarification to Hube's perfectly correct answer)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.