wordpress modifying single.php file, theme update

Hi,

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.
rflorencioAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
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.
0
 
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)
0
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.