Hi Arshid,
Would you please help me in form as i am getting so manny errors using this form in amp. Please reffer screenshot:
https://unsee.cc/61dfa04c/
Plugin Author
Arshid
(@arshidkv12)
Please paste contact form 7 shortcode to page or post and try.
I tried just. Still same issue occuring. You can see my dummy url of website:
https://www.varemar.com/test/amp/
Plugin Author
Arshid
(@arshidkv12)
Please send login details to support@ciphercoin.com
This plugin not working with contact form 7 shortcode. Can you please check this error?
Thanks
Plugin Author
Arshid
(@arshidkv12)
Please provide more details.
I hope there is a more elegant way, but at the moment I just added the following code to pass the AMP validation:
echo str_replace('<form action="http:', '<form action-xhr="', do_shortcode('[contact-form-7 id="9"'));
And in functions.php of my AMP theme:
function my_amp_post_template_head() {
echo '<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.1.js"></script>';
}
add_action('amp_post_template_head', 'my_amp_post_template_head');