steve0hh

Yet another programmer

Fork me onGitHub

Themify Corporate Theme Unable To Upload Images In Customize Page

28 Feb 2014

1) Customisation panel uploading portion no response

couldn't upload

2) Found out that there is an javascript error:

wp.media is undefined

3) Googled and found this link:

Add the following script to custom-functions.php Note: If you do not have a custom-functions.php, create one in the theme folder.

<?php
/* Load media files needed for Uploader */
function load_wp_media_files() {
  wp_enqueue_media();
}
add_action( 'admin_enqueue_scripts', 'load_wp_media_files' );
?>

4) Works flawlessly.

awesomeeee!

comments powered by Disqus