I simply began using Wordpress 3. to obtain a simple blog up on and on. For the time being I'm dealing with the default theme "Twenty Ten".
I wish to create a simple change:
Let me customize the layout from the bloginfo( 'name' ), bloginfo( 'description' ), and php header_image() that seems towards the top of your blog.
So, under Appearance, Editor, I choose Header.php and I can tell how this really is being made.
It seems I'm able to just modify this to my liking and i'm all set. (Correct?)
If that's the case, my real question is: could it be considered proper practice to change the html in header.php?
It appears in my experience this is a little harmful, for instance when the time comes to upgrade that same theme. How do you know which php files I've applied custom remaking to? Say I modify 6 php files, then upgrading from the theme arrives...how do you handle re-using these changes towards the upgraded theme?
Could it be an overall total "do over"?
It is possible to better way additional scenario?
Maybe some styles tend to be more effective than the others and may handle this kind of personalization more flexibly, and that i ought to be trying to find this type of theme? Or, it is possible to reasonably proper and safe method of doing this by directly editing the php files?
Child theme, child theme, child theme. Produce a new folder in styles (title it anything you want. Add too much. As lengthy while you don't title it twentyten). Produce a style.css file for the reason that directory and copy the entire style.css file from twentyten in it. Then, alter the theme title within the css headers and add this line following the tags:
Then copy the header.php file to another file inside your directory, and edit for your heart's content. If twentyten ever will get up-to-date, you will get the advantage of individuals updates (unless of course they are in css or even the header) without losing your changes.
Yes, you are able to edit the theme the way you like. I believe it is common practice (however, I have always just produced my very own styles on your own). Just give credit where it's due and do not pass them back as the own original work.
To prevent over-writing your personalized theme when upgrading arrives, you could lay aside the personalized one to another folder within the styles directory having a different title, like
Twenty Ten Customized. After that you can copy or re-perform the alterations in the upgraded theme if you feel the upgrades are worthwhile. There is no rule that states you need the most recent version from the theme, in the end.
There can be other styles that permit a higher amount of personalization without editing the php, but more often than not you'd need to edit the php I'd think. (but I am no professional theme developer.)
I'd do as Benny recommended and relabel the theme to ensure that it is not overwritten whenever you upgrade Wordpress.
I wouldn't be worried about updates towards the actual theme because I do not think individuals ever really happen. The final Wordpress default theme was Kubrick and, to my understanding, it rarely was up-to-date and many updates were minor and went undetected by most customers. Should you start designing your theme, I do not think Wordpress will update the Twenty Ten theme to the stage in which you would ever wish that you simply had not edited the origin since you desired to upgrade towards the new default theme.
If you won't want to really edit the theme files, take a look at something similar to Thesis that enables you to definitely personalize the majority of things in the admin.
Note: I am unaware of a totally free theme that provides lots of personalization options with the admin panel, but there can be something should you search around for some time.
Basically really needed to stop automatic updates on my small Wordpress theme, I'd just do what Kris + Chris Schmitz recommended (i.e. relabel the theme in a different way). Modify header information within the
style.css file inside your theme's root to get this done.
Personally, however, when the theme already works best for me as they are, I believe I'd most most likely be fine with this. My website's running, the theme's working, and upgrading my theme might just break my website with techniques I'm not sure.
I'd most likely update it just for major security updates, but I'd most likely be reading through a changelog for your. But when I had been doing that, I'd understand what files exactly were modified, and that i can just by hand get it done myself. Seems like lots of work, but much better than my website buckling on me by some cause.