wordpress plugin - Add a jQuery function to an existing one with a separate file -
so here problem:
i'm using wordpress plugin handles forms (contact form 7). within plugin there function shows message, when mail been sent(not succesfully submitted). message stays there until page reloaded. want remove message after few seconds. message in div class of .wpcf7-repsonse-output
.
contactform 7 provides, within admin section of plugin, option add custom code after event, added this:
jquery('.wpcf7-response-output').delay(3000).slideup(400);
the code suppose do, right after event , after standard function fires, message still there...
i have found function handles event , can add code work, when plugin gets update, code gone.
i prefer not add code admin section of plugin aswell. create separate file code hooks existing functionality. possible?
thank you.
Comments
Post a Comment