Solved

wordpress modifying single.php file, theme update

Posted on 2014-09-12
2
188 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Logo Problem. 2 32
"Go Fund Me" type plugin 5 40
how can I add blockquote after on my wordpress site 3 23
Wordpress themes CSS? 6 30
If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
How to create your own WordPress Theme Before I begin with the theme design tutorial, I would like to give you the basics of what is required to make a WordPress Theme. The most basic WordPress theme only requires 2 files: a style.css file and an…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
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…

685 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