Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#9418 closed defect (bug) (invalid)

Child themes overriding parent styles bug

Reported by: Gofish Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: child theme
Focuses: Cc:


In theme preview in the Wordpress admin, Child themes do not show a proper thumbnail.

Also, I have a child theme that uses a style.css that overrides the parent's style.css, and Wordpress says the active theme is broken.

Attachments (1)

bug1.jpg (52.7 KB) - added by Gofish 11 years ago.
Broken preview

Download all attachments as: .zip

Change History (6)

11 years ago

Broken preview

#1 @demetris
11 years ago

  • Cc dkikizas@… added
  1. Preview thumbnails are not generated by WordPress. You need to include one in your (child) theme’s folder. If you don’t, you see what you see now.
  1. I’m not sure I understand: The parent style.css is overriden by default when you use a child theme. (Its rules are not used at all unless you import it explicitly into the child’s style.css.)

#2 @Gofish
11 years ago

  • Summary changed from Child themes preview bug, overriding parent styles bug to Child themes overriding parent styles bug

#3 @Gofish
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Thanks...I think it was because I was using switch_theme in the parent theme to switch to the child theme while the child theme was active and it caused a bug.

#4 @Denis-de-Bernardy
11 years ago

  • Milestone Unassigned deleted
  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @Denis-de-Bernardy
11 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.