kadikey58
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Init scripts only on pages where shorcode isNo, with my veraiant doesn’t work the ajax, because after wpcf7_enqueue_scripts(); the line
<script id="contact-form-7-js-extra"> var wpcf7 = {"api":{"root":"https:\/\/wptest.u0587810.cp.regruhosting.ru\/wp-json\/","namespace":"contact-form-7\/v1"}}; </script>
doesn’t appear
Forum: Plugins
In reply to: [Contact Form 7] Init scripts only on pages where shorcode isI did it with filter
function wpcf7_add_assets( $atts ) { if ( !is_admin() ) { wpcf7_enqueue_styles(); wpcf7_enqueue_scripts(); return $atts; } } add_filter( 'shortcode_atts_wpcf7', 'wpcf7_add_assets' );
But I can’t find any description of ‘shortcode_atts_wpcf7’ except this https://contactform7.com/getting-default-values-from-shortcode-attributes/
Where I can find more information about this Filter. What is for the $pairs parameter?
- This reply was modified 1 year, 10 months ago by kadikey58.
Forum: Plugins
In reply to: [Contact Form 7] Init scripts only on pages where shorcode is@takayukister, can you help me with my last reply?
Forum: Plugins
In reply to: [Contact Form 7] Init scripts only on pages where shorcode isIn this variant I need to place the code on pages where I’ll place the form. But I need to activate scripts from functions.php without using of ID or page slag.
Добавил папку в исключения в таком виде “/wp-content/plugins/contact-form-7/”, но ошибки всё равно возникают. В Litespeed cache проблема решается если установить “JS Combine External and Inline” в положение “ON”, можете здесь посмотреть https://litespeed.u0587810.cp.regruhosting.ru/
В вашем плагине – это, к сожалению, не помогает.Forum: Plugins
In reply to: [LiteSpeed Cache] Working with contact form 7The problem was that after upgrade it works only with “JS Combine External and Inline” turned on.
До обновления плагина Contact Form 7 всё работало с включенной функцией Объединять JS-файлы
Forum: Plugins
In reply to: [Contact Form 7] Добавление целей метрики в Contact Form 7привет, я например использую Google Tag Manager и как добавить срабатывание целей на форму есть отличная инструкция – https://www.analyticsmania.com/post/contact-form-7-event-tracking-with-google-tag-manager/
Если понимаете на английском, то разберетесь. Если нет – пишите, вместе разберемся)
Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 bootstrap validationparkotel-sochi.ru
There are contact form 7 appears after the first form submited and with <span> tags, now I’m trying to do this on my local server.Ok, thanks!
So, you suggest not use the Gutenberg?