• Hey

    I am using the Alo Easymail newsletter plugin.

    It has a widget to collect subscribers.

    I only use the widget on ONE page.

    However the plugin injects the script displayed below into the header of EVERY one of my pages including my HOME page.

    This script DOES not register or appear in the Webcraftic menu so I do not have the option to disable it on all pages except for my Newsletter page.

    Why does it not appear in your menu and how can I fix this so I can disable the script on all pages except for my subscribe page?

    Code inserted into all pages by alo Easy mail:

    function alo_em_user_form ( opt )
    		{
    			
    			document.getElementById('alo_easymail_widget_feedback').innerHTML = '';
    			document.getElementById('alo_easymail_widget_feedback').className = 'alo_easymail_widget_error';
    			document.getElementById('alo_em_widget_loading').style.display = "inline";
    
    			var alo_em_sack = new sack(
    				"https://bestdivi.com/wp-admin/admin-ajax.php" );
    
    			alo_em_sack.execute = 1;
    			alo_em_sack.method = 'POST';
    			alo_em_sack.setVar( "action", "alo_em_user_form_check" );
    			alo_em_sack.setVar( "alo_easymail_option", opt );
    									alo_em_sack.setVar( "alo_easymail_txt_generic_error", 'Error during operation.' );
    			alo_em_sack.setVar( "alo_easymail_txt_success", 'Successfully updated' );
    			alo_em_sack.setVar( "alo_easymail_txt_need_sub", 'Before editing other fields you have to click the subscription choice' );
    			alo_em_sack.setVar( "alo_easymail_lang_code", 'en' );
    						var cbs = document.getElementById('alo_easymail_widget_form').getElementsByTagName('input');
    			var length = cbs.length;
    			var lists = "";
    			for (var i=0; i < length; i++) {
    				if (cbs[i].name == 'alo_em_form_lists' +'[]' && cbs[i].type == 'checkbox') {
    					if ( cbs[i].checked ) lists += cbs[i].value + ",";
    				}
    			}
    			alo_em_sack.setVar( "alo_em_form_lists", lists );
    			alo_em_sack.setVar( "alo_em_nonce", 'ca409e9be6' );
    			alo_em_sack.runAJAX();
    
    			return true;
    
    		}
    • This topic was modified 6 years, 8 months ago by khunmax.
  • The topic ‘Script for Specific Plugin not appearing in Webcraftic Menu’ is closed to new replies.