php - Wordpress: editing child theme -


i want edit stuff on website. i'm using child theme , plan change css , structural changes. know css easy change, need call names of classes or ids , give new values.

but, if want change things around in html, need copy whole code? lose every change when theme updates (as in: copied , pasted older version , need copy , paste new version)?

i don't know names of things , how describe them properly.

make copies of theme files in parent theme want modify - such index.php, category.php, etc - , move child theme , edit them. copies in child theme used wordpress rather same-named files in parent. includes file in folders, i.e. /css/style.css, duplicate file structure in child theme, if needed.

the child theme continue use files, if/when parent theme updated. , means child theme edits won't disappear, unless there major structural/functional changes parent theme.

one exception child theme file usage functions.php:

unlike style.css, functions.php of child theme not override counterpart parent. instead, loaded in addition parent’s functions.php. (specifically, loaded right before parent’s file.)

see http://codex.wordpress.org/child_themes


Comments