WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#41076 new defect (bug)

Themes: Add more help and documentation when editing theme files

Reported by: karmatosed Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: Cc:
PR Number:

Description

Add:

“Looks like you’re trying to edit your theme! We recommend creating a [child theme](link)" instead.

This will let you make changes to your theme without accidentally breaking anything.” Except with better copy. Maybe also a “make child theme” one-click button that generates a child theme with a functions.php and style.css.

Change History (5)

#1 @swissspidy
3 years ago

Can we handle the warning thing in #41075 and keep this one for the help part only? I think there are some plugins that let you create child themes that we could look at.

This ticket was mentioned in Slack in #design by melchoyce. View the logs.


2 years ago

#3 @melchoyce
2 years ago

Moving the warning stuff over to #31779. Let's keep this for other ideas and enhancements around editing theme files for now.

#4 @melchoyce
2 years ago

Some ideas...

  • Could we add autocomplete for add_theme_support() if you're in functions.php?
  • Could we add autocomplete for things like get_template_part() or get_[header, footer, etc.]() in template files?
  • Could we provide any helpful hints or not-quite-inline documentation?

#5 @melchoyce
2 years ago

  • Summary changed from More help/warning for themes to Themes: Add more help and documentation when editing theme files
Note: See TracTickets for help on using tickets.