Opened 17 years ago
Closed 16 years ago
#8236 closed defect (bug) (fixed)
Child theme template files not showing up in Theme editor
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | Themes | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
The enhancements to child themes is great.
I have created a child theme and have copied a couple of the parent template files to the child directory so that I could make a few little changes.
I was working with a file editor and uploading the changes via ftp.
I went to change one small detail in one of the files with the theme editor from the dashboard, but the file it displayed was from the parent theme and not the child theme.
If the child's theme template files are able to override the parent's theme template files, then how come this isn't happening with the theme editor?
The changes I have made are being reflected in the style, and none of the changes have been applied to the parent template files by mistake.
Attachments (4)
Change History (17)
#3
@
17 years ago
Ok, I think I've done it.
Please use theme-editor.diff, as theme-editor.php.patch was my first attempt, and also my first attempt at using diff!
#5
@
17 years ago
- Keywords has-patch added
- Resolution fixed deleted
- Status changed from closed to reopened
Tickets remain open until the fix is commited to SVN.
#6
@
17 years ago
- Keywords needs-testing added
- Owner set to roganty
- Status changed from reopened to new
#8
@
16 years ago
- Owner changed from roganty to westi
- Status changed from new to assigned
I will try and test and review this before RC
If not it will have to wait for 2.7.1
#9
follow-up:
↓ 10
@
16 years ago
Thanks westi
I have just uploaded an updated patch that uses revision 9903
#10
in reply to:
↑ 9
;
follow-up:
↓ 11
@
16 years ago
Replying to roganty:
Thanks westi
I have just uploaded an updated patch that uses revision 9903
Pointers to an example theme that uses this feature will speed up my testing ;-)
#11
in reply to:
↑ 10
@
16 years ago
Replying to westi:
Pointers to an example theme that uses this feature will speed up my testing ;-)
Westi, What do you need?
All you need is a child theme.
The child theme that I am using overrides a few of the files from the parent theme. eg, header.php
And the files listed in the theme editor are all from the parent theme, the only files that show up from the child theme is style.css and any files not found in the parent theme.
The parent theme I am using is called Grey Matter, and the child theme is my own which I'm calling Blue Matter.
To suit my needs better I copied some of the files from Grey Matter to my own theme and changed those files.
Comment 4 in ticket:7086 mentions this problem, hopefully this is a solution!
#12
@
16 years ago
Blue Matter requires the URI Crumb Plugin
Ok, I think I have found where the problem is occurring
It is in the file /wp-admin/theme-editor.php
What is needed is to check if the file has already been added.
I'll have a go and see if I can come up with something.