Contactable contact form not working as wp plugin
-
Contactable jquery plugin convert into wp plugin. Everything is ok but when submit it always show “Sorry but your message could not be sent, try again later”
My fuction.php is:<?php /* Plugin Name: Jeba form Plugin URI: https://prowpexpert.com/jeba-form-portfoilo Description: This is Jeba cute wordpress formable portfolio plugin really looking awesome forming. Everyone can use the cute form plugin easily like other wordpress plugin. By using [jeba_form] shortcode use the slider every where post, page and template. Author: Md Jahed Version: 1.0 Author URI: https://prowpexpert.com/ */ function jeba_form_wp_latest_jquery() { wp_enqueue_script('jquery'); } add_action('init', 'jeba_form_wp_latest_jquery'); function plugin_function_jeba_forms() { wp_enqueue_style( 'jeba-form-css', plugins_url( '/contactable.css', __FILE__ )); wp_enqueue_script( 'jebacuteform-js', plugins_url( '/jquery.contactable.js', __FILE__ ), true); } add_action('wp_footer','plugin_function_jeba_forms'); function jeba_form_plugin_function () {?> <div id="my-contact-div"><!-- contactable html placeholder --></div> jQuery(function(){ jQuery('#my-contact-div').contactable( { subject: 'feedback URL:'+location.href, header: '', url: 'mail.php', name: 'Name', email: 'Email', dropdownTitle: 'Issue', dropdownOptions: ['General', 'Website bug', 'Feature request'], message : 'Message', submit : 'SEND', recievedMsg : 'Thank you for your message', notRecievedMsg : 'Sorry but your message could not be sent, try again later', footer: 'Please feel free to get in touch, we value your feedback', hideOnSubmit: true }); }); <?php } add_action('wp_footer','jeba_form_plugin_function'); ?>
Demo link: https://laptopidea.com/ left side have a contact buttons.
Thanks
- The topic ‘Contactable contact form not working as wp plugin’ is closed to new replies.