首页 文章

Wordpress文件下载:联系表格7

提问于
浏览
-1

在这个wordpress页面的右下角,我有一个联系表格7,上面写着“如何在婚姻区域约会” .

https://soulconnectcoaching.com/

我知道使用插件联系表单7和Popup Maker,但无法找到如何更改从填写该表单下载的文件 . Does anyone know how to change the file downloaded from the contact form in either the Popup Maker plugin or Contact Form plugin (I don't know which)?

这是我认为设置可以改变的地方,但我找不到它 . 提交表单后直接下载文件(文件未通过电子邮件发送)

enter image description here

1 回答

  • 1

    这是一个用于文件的java脚本代码:

    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
    if ( '123' == event.detail.contactFormId ) {
        location = 'https://soulconnectcoaching.com/wp-content/uploads/2017/10/how-to-date-in-the-marriage-zone.pdf';
    }}, false );
    </script>
    

    所以在主页模板或页脚中找到代码,只需替换pdf文件名 .

相关问题