Viewing 15 replies - 1 through 15 (of 18 total)
  • It may take some programmatic effort to ensure Olark char works in AMP URLs although I suspect it may be possible. If you run into trouble using the amp-script component you can reach out to others on Stackoverflow, we don’t provide support for such customizations.

    In relation to creating a form have you tried using the JetPack form block, WPForms or Contact Form 7? You might find them easier than creating your own form. If you prefer to use your own custom form I’ve used this guide before to create a form like your own.

    Thread Starter franks123

    (@franks123)

    They are custom forms without using any plugins.

    So for amp version, i have to made separate form?

    Can i use only one file for form. currently there is one php file is using for one form.

    please guide me about this thing.

    Thank you

    You should be able to use the same form handler for AMP URLs, they don’t impact the front end of your site.

    Can i use only one file for form. currently there is one php file is using for one form.
    please guide me about this thing.

    We don’t provide guidance for features unrelated to the AMP plugin. If looking for a form solution the plugins suggested work in AMP as they do for your canonical URLs.

    Thread Starter franks123

    (@franks123)

    If one form can be used then which things i will take from this link for amp version

    https://wpza.net/how-to-create-amp-contact-forms-in-wordpress/

    thank you

    The information is provided in the tutorial. If you’re unable to implement on your site you may need to use resources such as Stackoverflow for assistance.

    Thread Starter franks123

    (@franks123)

    Hi, I have four questions

    1) Header set Access-Control-Allow-Origin ‘https://cdn.ampproject.org?’
    Header set AMP-Access-Control-Allow-Source-Origin ‘https://example.com’

    what will be the link will be added in place of “https://example.com” ?

    2) If i add these two lines in .htaccess then website will work fine or not and on which place i will add this piece of code in htaccess file?

    3) I have to ask then if i have to add separate file name in action-xhr mentioned in below
    action-xhr=”<php echo get_template_directory_uri();/form-handler.php”

    or if i want to do it in one file then what will be link should i mention in action-xhr.

    4) please see that i have made submission file or not. there are two link.

    View post on imgur.com

    View post on imgur.com

    Please guide me about these four questions. I will wait for your reply

    Thank you

    • This reply was modified 4 years, 1 month ago by franks123.
    • This reply was modified 4 years, 1 month ago by franks123.
    • This reply was modified 4 years, 1 month ago by franks123.

    Unfortunately we can only assist with queries in relation to the AMP plugin specifically. As mentioned previously you’ll need to request developer assistance or make use of resources such as Stack Overflow if you require help with general AMP queries.

    Thread Starter franks123

    (@franks123)

    I am asking about amp forms nothing irrelevant to any other things.

    Please help me or suggest me the link so that i will contact them.

    If i will move custom forms to contact form7 then it will easy for me in amp version or not?

    • This reply was modified 4 years, 1 month ago by franks123.

    Creating a custom form handler is not something we advise on, it’s not a feature of the AMP plugin. Making use of a plugin such as the ones previously mentioned may be a viable solution to ensure a working form in your AMP URLs.

    Plugin Author Weston Ruter

    (@westonruter)

    We have documentation on form handling in https://amp-wp.org/documentation/playbooks/handling-form-submissions/

    Contact Form 7 is not AMP-compatible in itself. However, you may consider this mini plugin to shim compatibility: https://gist.github.com/westonruter/3501016b0d44af45d878067b1856e023

    For further improvements to form handling in the AMP plugin, see https://github.com/ampproject/amp-wp/issues/4191

    Thread Starter franks123

    (@franks123)

    hi @westonruter ,
    I will download zip from this link
    https://gist.github.com/westonruter/3501016b0d44af45d878067b1856e023
    and i will upload it into plugin directory and activate it. It will do my work. Am i right?

    Please guide me about this thing.

    Thank you

    Plugin Author Weston Ruter

    (@westonruter)

    Refer to the installation instructions linked to in a comment: https://gist.github.com/westonruter/3501016b0d44af45d878067b1856e023#gistcomment-3240777

    Thread Starter franks123

    (@franks123)

    Hi, i will use this guide to make contact form 7 forms amp compatible.
    So according to my thinking. it is better to build forms in contact form 7 with amp-contact-form-7-support.php supporting plugin rather then using custom forms.

    Please guide me about this thing.

    thank you

    Plugin Author Weston Ruter

    (@westonruter)

    It’s up to you and your use case.

    Thread Starter franks123

    (@franks123)

    ok i will use this amp contact form 7 support plugin. I will let you know if any issue will appear.

    Thank you

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘olark chat can be added in amp custom script or not?’ is closed to new replies.