WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#42644 new feature request

Customize: Add rich text control for managing tagline and new footer credit theme support

Reported by: westonruter Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version: 4.8
Component: Customize Keywords: needs-patch
Focuses: Cc:

Description (last modified by westonruter)

In #35243 we extended the Text widget to add TinyMCE. This depended on #35760 which introduced the wp.editor.initialize() API for dynamically-instantiating TinyMCE editors. Similarly in #41897 we introduced a Code Editor control which leveraged the wp.codeEditor.initialize() API introduced in #12423. It would seem that there should similarly be a rich text control available in the Customizer.

The rich text control could be used to manage the site's tagline.

This rich text control could also be leveraged by themes to manage a site's footer credits; the control could appear in the Site Identity section. Instead of “Powered by WordPress” being hard-coded into the theme's footer, it could instead be the default value for a footer_credit option. This would then allow a user to easily add additional site credits and copyright information to the footer of their site, without having to modify the theme template to do so. WordPress.com has a dropdown control with preset options for this “powered by” text and then a final option to hide for business plans. There could also be a “custom” option which could then reveal a footer credit rich text input where a user could supply links and other content allowed by the Text widget. Naturally the bundled core themes in WordPress.org could make this available by default without requiring a business plan.

A new footer_credit theme support could be added support added to Twenty Seventeen to take advantage of this new functionality. Previewing the change to the footer text should be done with selective refresh.

The rich text control could also be used in themes for managing other parts of the template, like business hours appearing in the header, without having to add a new widget sidebar.

Editor should only initialize once the control's containing section is expanded, as was done with the Code Editor control.

Attachments (1)

footer-credits-WordPress.com.png (142.7 KB) - added by westonruter 7 months ago.

Download all attachments as: .zip

Change History (11)

#1 @westonruter
7 months ago

  • Description modified (diff)

#2 @westonruter
7 months ago

  • Summary changed from Customize: Add rich text control to Customize: Add rich text control and footer credit theme support

#3 @westonruter
7 months ago

  • Description modified (diff)
  • Summary changed from Customize: Add rich text control and footer credit theme support to Customize: Add rich text control for managing tagline and new footer credit theme support

#4 @westonruter
7 months ago

  • Description modified (diff)

#5 follow-up: @joyously
7 months ago

It looks like two tickets now. I liked it better as "Add rich text control", and then if you want to change something else to use it, it's a different ticket.

#6 @westonruter
7 months ago

  • Description modified (diff)

This ticket was mentioned in Slack in #core by westonruter. View the logs.


7 months ago

#8 @joyously
7 months ago

I was going to suggest that the new text control implement buttons for data from bloginfo().

#9 in reply to: ↑ 5 @westonruter
7 months ago

Replying to joyously:

It looks like two tickets now. I liked it better as "Add rich text control", and then if you want to change something else to use it, it's a different ticket.

Yeah, we can split it up into two. However, there has to be a use case for a new feature, so this makes a case for the value as well.

Note: See TracTickets for help on using tickets.