How can I duplicate a contact form on another page?

Koureche
Tourist
6 0 0

Hello, I'd like to add the contact form to my "Espace pro" page.
https://lavieexotique.fr/pages/contactez-nous this is the contact form page, I would like to duplicate this section (the contact form) and add it at the bottom of the page as shown in the image below.
contact form issue.png

https://lavieexotique.fr/pages/espace-pro-1

Reply 1 (1)

EricHan_0706
Excursionist
17 1 3

Hi, Koureche

     I think you could follow steps below .hope can help you

  1. Log in to your Shopify admin panel.
  2. From the left-hand sidebar, click on "Online Store" and then select "Themes."
  3. In the "Themes" section, locate the theme you are currently using and click on the "Actions" dropdown menu.
  4. Select "Edit code" from the dropdown menu.
  5. In the theme editor, locate the "Sections" directory and click to open it.
  6. Look for the section file that corresponds to your "Espace Pro" page. It might be named something like "espace-pro.liquid" or "page.espace-pro.liquid."
  7. Open the file for editing.
  8. Scroll down to the desired location where you want to add the contact form.
  9. In a new line, insert the following code:{% include 'contact-form' %}
  10. Save the changes to the file.
  11. Preview your "Espace Pro" page to see if the contact form has been added at the bottom.
  12. If everything looks good, click on "Save" to apply the changes to your live website.

By adding the above code, you are including the 'contact-form' snippet, which should replicate the contact form section from the "Contactez nous" page and display it on your "Espace Pro" page.

Did My response provide the assistance you were looking for? Give a 'Like' if it was helpful!
Was your question resolved? Mark our reply as the Accepted Solution.
If you require further assistance, feel free to contact me at hanjian_moon@163.com.