How to reload preview iframe in new Custimization section
-
I am creating a plugin to add page editing to the new WordPress theme customization area and have run into an issue. After adding or updating a page, I need to refresh the iframe containing the website preview in order for it to display the update. But after refreshing the iframe, it looses any updates that have been made from the customization panel, for instance, the blogname. But since I haven’t refreshed the parent page (customize.php), the data in the customization panel is still there, so I need to find a way to force the preview frame to “refresh” with the content from the custimzation pane. Have spent hours looking through the jquery methods WordPress uses to trigger the preview frame update, but haven’t found anything I could get working for me. Looking for any ideas or help on the matter. Thanks in advance.
- The topic ‘How to reload preview iframe in new Custimization section’ is closed to new replies.