I sent you some code yesterday to fix the issue (or I thought I did, but ended up sending to someone else).
Here is the code – add this to your functions.php to change the loading of the styles:
// START CODE COPY
if(function_exists('aws_prodinpost_addhead')){
remove_action('wp_head', 'aws_prodinpost_addhead',10);
add_action('wp_enqueue_scripts', 'aws_prodinpost_addhead_new',10);
function aws_prodinpost_addhead_new(){
$ajax_nonce = wp_create_nonce( 'appip_style_verify' );
wp_enqueue_style('appip-dynamic',admin_url('admin-ajax.php').'?action=appip_dynaminc_css_custom&nonce='.$ajax_nonce,array(),null);
wp_enqueue_style('appip-lightbox', plugins_url().'/amazon-product-in-a-post-plugin/css/amazon-lightbox.css', array(),null);
}
}
function appip_dynaminc_css_custom() {
check_ajax_referer( 'appip_style_verify', 'nonce', true );
$usemine = get_option('apipp_product_styles_mine', false);
$data = $usemine ? get_option('apipp_product_styles', '') : get_option('apipp_product_styles_default', '') ;
echo $data;
exit;
}
add_action('wp_ajax_appip_dynaminc_css_custom', 'appip_dynaminc_css_custom');
add_action('wp_ajax_nopriv_appip_dynaminc_css_custom', 'appip_dynaminc_css_custom');
// END CODE COPY
Let me know if you still have issues.
Regards,
Don