benoitroubert
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Notification Bars] How to modify the plugin from Child Theme?Update
Forum: Plugins
In reply to: [YITH Topbar Countdown] How to hack plugin files through child theme?Anyone for a clue?
Forum: Plugins
In reply to: [Smart Grid-Layout Design for Contact Form 7] URGENT! Problem with updateHello and thansk for your support.
In fact it was a problem with the WordPress version that was to old, and another CF7 DatePicker plugin which was creating interference.
Thanks for your rapid answer ^^.
- This reply was modified 6 years, 1 month ago by benoitroubert.
Forum: Plugins
In reply to: [Smart Grid-Layout Design for Contact Form 7] URGENT! Problem with updateAfter having tried ti use WP RollBack it’s now worse…
If we activate it we have blank page with this message:
Fatal error: Call to a member function query() on a non-object in?/home/clients/c27830fc23f1bb59bac7fd083cf69e15/web/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php?on line?164
Hello.
It seems that there is again a problem with last version of CF7.
Could you please @aurovrata see it?
Forum: Plugins
In reply to: [Page scroll to id] Various issuesSOLUTION
For everyone that would read this post, be sure not to have this kind of rule:
html, body
{
height: 100% !important;
}(it was from a precedent project to prevent horizontal scrolling bug of body).
After suppressing this rule, no more problem and everything works like a charm (on all browsers, on Desktop / Tablet / Smartphones, with inside anchors and outside anchors (from links from a source page).
Forum: Plugins
In reply to: [Page scroll to id] Various issuesBefore all, thanks for your support!
I sent you private access by mail and more details about some of the problems.
RESPONSIVE OFFSET
Indeed thanks. I then chose the #main-header element as offset element.
Forum: Plugins
In reply to: [Flamingo] Let user choose mail / name / subject fields-nameThanks a lot for your rapid answer!
It was exactly this ^^.
Thanks for your great plugin!
Add something like this in your functions.php and create a /js/main.js file (or whatever else):
add_action( 'wp_enqueue_scripts', 'theme_child_enqueue_scripts'); function theme_child_enqueue_scripts() { // load main js wp_enqueue_script('main_js', get_stylesheet_directory_uri(). '/js/main.js', array('jquery') ); }
@byoungz: As a precision, I deactivated this finally:
add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_support_html5_fallback', '__return_true' );
So the solution in my precedent post logically must only affect input[type=”file”] and nothing else.
- This reply was modified 6 years, 10 months ago by benoitroubert.
Hello everybody,
So… After having tried some solutions on this forum that didn’t worked, I ended to the underneath solution that works like a charm for me, even in the case the form is in a popup!
In short: On clicking on submission link, add “disabled” state to input[type=”file”], then after end of Ajax Event, deactivate “disabled” state to input[type=”file”].
Work on all browsers including Safari on Desktop and iOs.
/* ═════════════════════════════════════════════════════════════════ * CONTACT-7 * ═════════════════════════════════════════════════════════════════ * * Solves the issue on Safari that blocks form submission when file upload fields are * presents but with no choosen file * * ═════════════════════════════════════════════════════════════════ */ jQuery(document).on('click', 'input.wpcf7-submit', function () { jQuery('input.wpcf7-file').each(function() { if (jQuery(this).val() == '') { jQuery(this).attr('disabled', true); } }); jQuery(document).ajaxComplete(function () { jQuery('input.wpcf7-file').each(function() { if (jQuery(this).val() == '') { jQuery(this).attr('disabled', false); } }); }); });
- This reply was modified 6 years, 10 months ago by benoitroubert.
Hello again everybody
After some diligent research, I think I found a fallback (to be put in functions.php):
/* ══════════════════════════════════════════════════════════════════════════ * PLUGIN — CONTACT-FORM 7 * ══════════════════════════════════════════════════════════════════════════ * * Solve the Safari's issue where submission of form fails if an upload file field * exist and no file is uploaded. * * ══════════════════════════════════════════════════════════════════════════ */ add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_support_html5_fallback', '__return_true' );
Wait for the other guys that reacted on this post to know if it solves the problem on their side.
If so, I will close the topic; if not, I will let it open.
- This reply was modified 6 years, 10 months ago by benoitroubert.
Anybody for a clue?
Hi,
It has done exactly the job! Thanks a lot ^^.
It would be a great think to add this in the official documentation as well.
Hi.
Yes is it exactly the same thing but relative to job type.
Please warn us when you will have developper answer since normally our deadline is in a week.
Thx!!
- This reply was modified 6 years, 11 months ago by benoitroubert.