WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 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:

Description

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 5 years ago.
Broken preview

Download all attachments as: .zip

Change History (6)

Gofish5 years ago

Broken preview

comment:1 demetris5 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.)

comment:2 Gofish5 years ago

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

comment:3 Gofish5 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.

comment:4 Denis-de-Bernardy5 years ago

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

comment:5 Denis-de-Bernardy5 years ago

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