[wp-trac] [WordPress Trac] #39652: enable Customize Manager Theme-Preview to switch to the dedicated page of a control
WordPress Trac
noreply at wordpress.org
Sun Jan 22 02:38:34 UTC 2017
#39652: enable Customize Manager Theme-Preview to switch to the dedicated page of a
control
-----------------------------+----------------------
Reporter: nimo24 | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Customize | Version: 4.7.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-----------------------------+----------------------
Changes (by celloexpressions):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
This is currently possible via the JS API, and should probably remain in
JS rather than PHP since it can happen much more directly that way. There
are a couple of core examples for this, such as the "original" link in
menu item controls and the front page and posts page controls.
I've added a new section with an example of this to the documentation on
the JS API: https://developer.wordpress.org/themes/customize-api/the-
customizer-javascript-api/#preview-js-and-controls-js. In your particular
case, you'll want to bind a callback to the section's `expanded` state and
change the preview URL when it turns true.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39652#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list