JSON API broken
-
With plugin enabled in the json api code replied, there is css and js of the plugin. I fixed this by
//print "<link rel='stylesheet' id='cpm_style-css' href='".CPM_PLUGIN_URL.'/styles/cpm-styles.css'."' type='text/css' media='all' />"; //print "<script src='".CPM_PLUGIN_URL.'/js/cpm.js'."'></script>";
and by replacing it with
wp_enqueue_style( 'cpm_style', CPM_PLUGIN_URL.'/styles/cpm-styles.css' ); wp_enqueue_script( 'cpm_script', CPM_PLUGIN_URL.'/js/cpm.js', array('jquery'), null, true );
and its fixed. Please add on main source.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘JSON API broken’ is closed to new replies.