[wp-trac] [WordPress Trac] #37981: template_include not working in customizer previewer

WordPress Trac noreply at wordpress.org
Sun Sep 18 05:48:43 UTC 2016


#37981: template_include not working in customizer previewer
---------------------------------+-----------------------------------------
 Reporter:  jaschaio             |       Owner:
     Type:  defect (bug)         |      Status:  closed
 Priority:  normal               |   Milestone:  Awaiting Review
Component:  Customize            |     Version:  4.6.1
 Severity:  normal               |  Resolution:  invalid
 Keywords:  close reporter-      |     Focuses:  javascript, administration
  feedback                       |
---------------------------------+-----------------------------------------
Changes (by jaschaio):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Replying to [comment:2 westonruter]:
 > @jaschaio you have to make sure that the `wp_head()` and `wp_footer()`
 calls are made so that scripts are printed. If `customize-preview.js`
 isn't output, then the loaded page won't be able to communicate to the
 parent frame that the page has finished loading. This issue actually came
 up recently elsewhere: https://github.com/Automattic/amp-
 wp/issues/477#issuecomment-247679386

 Thank you so much. This was the problem, the included template didn't
 called `wp_footer()`. I looked everywhere for the solution as I couldn't
 manage to make it work and can't believe that it was that simple. I would
 never found that solution myself, maybe its something worth adding to the
 template_include codex page or on the customizer page itself.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37981#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list