Solved

wordpress modifying single.php file, theme update

Posted on 2014-09-12
2
182 Views
Last Modified: 2014-09-14
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.
0
Comment
Question by:rflorencio
2 Comments
 
LVL 18

Accepted Solution

by:
Hube02 earned 450 total points
ID: 40319475
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
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 50 total points
ID: 40319529
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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cannot access my wp-admin account 2 17
Intermittent Error on Page Loading 4 55
manage footer size 4 51
URGENT - Wordpress site missing  theme 9 40
Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question