Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to link into the WordPress Customizer

This comment has been minimized.

Copy link

cliffordp commented Nov 15, 2017

Very nice! I found it from

Heads up: These do not work if the Customizer is active, giving the link a .customize-unpreviewable class and therefore gets this CSS applied: cursor: not-allowed !important;

You can use to detect if in the customizer.

And may be a handy alternative or supplement, too.


This comment has been minimized.

Copy link

maxviewup commented Nov 20, 2017

TIP: if you want to add links inside the customizer, you can use the customizer API:
<a href="javascript:wp.customize.panel( 'widgets' ).focus();">Widgets Panel</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.