-
Notifications
You must be signed in to change notification settings - Fork 37
Reduce the number of steps from clicking on ‘customize’ to editing the page/post #105
Comments
@alcurrie note, however, the “Edit” link that appears with the post/page in the preview. Clicking this will expand the panel and section for you. Also, shift-click on the content should do the same and expand the editor. |
Here's a little code snippet I'm using the achieve this effect: (function($,api){
api.bind('ready', function(){
api.previewer.bind( 'customized-posts', function( data ){
_.defer( function() {
var didFocus = false;
api.section.each( function( section ) {
if ( section.params.post_id === data.queriedPostId ) {
section.focus();
didFocus = true;
}
} );
if ( ! didFocus ) {
api.panel.each( function( panel ) {
panel.collapse();
} );
}
})
});
});
}(jQuery,wp.customize)) |
@danielbachhuber that looks very familiar 😄 |
One bug I noticed: if the section is already previewed, then calling |
I think I misunderstood @alcurrie's suggestion. All we need to do here is filter the link for the Customize admin bar link to include the I agree that this would be a nice usability improvement. |
User Steps
The current process to edit a page (or post) in Customizer, is as follows:
However to actually edit the page in customizer the user has 3 more steps:
2. Click on Pages in the left navigation pane
3. Click on Name of Page
4. Click on [Open Editor]
Recommended Usability Enhancement
After clicking on Customize from a specific page or post in the customizer have that page/post already open/expanded in the left navigation pane, so the user only has to select to open editor.
See screen shots
The text was updated successfully, but these errors were encountered: