Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Remove validate.js from footer #28376
    Andrea66
    Participant

    Hi Stefano

    I’ve try with

    // Remove validate.js from footer
    function clean_validate(){
    wp_deregister_script( ‘validate’ );
    }
    add_action(‘init’,’clean_validate’);

    but not does not work.

    Do you have a suggest?

    I will summarize: problem is that i have in code (and i want remove on single article)

    <script type=’text/javascript’>/* */
    var newsletter = {“messages”:{“email_error”:”L’email non \u00e8 corretta”,”name_error”:”Il nome non \u00e8 corretto”,”surname_error”:”Il cognome non \u00e8 corretto”,”profile_error”:””,”privacy_error”:”Devi accettare le regole sulla privacy”},”profile_max”:”20″};
    /* */</script> <script type=’text/javascript’ src=’http://www.site.com/wp-content/plugins/newsletter/subscription/validate.js’></script&gt;

    Thanks

Viewing 1 post (of 1 total)