• Resolved menathor

    (@menathor)


    Hey Ari,

    Do you know of a way to specify which page should be loaded when a section of the Customizer is clicked?

    The project I’m currently working on has fixed pages, so when clicking “Blog” in the Customizer I’d like domain.com/blog to automatically load in the preview pane.

    Any suggestions on how I could achieve that?

    Thanks ??

    • This topic was modified 4 years, 10 months ago by menathor.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter menathor

    (@menathor)

    PS. The idea would be to autoload a different page for each Customizer section / panel

    You can bind an event on the section expand like this:

    
    wp.customize.section( 'my-section' ).expanded.bind( function() {
      // Do something when the section expands.
    });
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any way to specify which page to load when Customizer section is clicked?’ is closed to new replies.