drau89457 2016-10-12 14:03
浏览 47

Wordpress联系表格7 Datepicker重新加载页面

I am having a few issues with the Plugin Contact Form 7, in particular the Datepicker.

On Chrome it works great.

On Firefox and Safari it seems to reload the page when clicking on a date. Firefox nor Safari supports the needed HTML 5 for the plugin to work so they have created a work around, adding this into the WordPress Functions.php,

add_filter( 'wpcf7_support_html5_fallback', '__return_true' );

This will make the drop down calendar work for Firefox and Safari but when one of the dates is clicked the browser reloads.

I can't really think of away to fix the issue.

If anyone can help with this that would be great!

  • 写回答

1条回答 默认 最新

  • douhuan1908 2016-11-08 20:40
    关注

    I found a solution! :D

    Been searching and trying to figure this out for a while now. Finally figured out a simple fix.

    Add this to your custom css

    span.wpcf7-form-control-wrap.date-316 {
    z-index:99999;}
    

    Just note that the .date-316 refers to your date field number, you will need to modify that to match your date field, this was the name for mine.

    Hope this helps everyone facing this issue.

    Cheers, Nico

    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 Revit2020下载问题
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大