raviriley / agency-jekyll-theme

Jekyll version of the newest Agency Bootstrap theme, plus new features: Google Analytics, Markdown support, custom pages, and more!
https://raviriley.github.io/agency-jekyll-theme-starter/
MIT License
347 stars 689 forks source link

Attempting to add formspree_form_path site variable #11

Closed morozgrafix closed 3 years ago

morozgrafix commented 3 years ago

possible fix for https://github.com/raviriley/agency-jekyll-theme/issues/10

Should maintain backwards compatibility if formspree_form_path is not set in older _config.yml installations.

Tested only locally, may need additional testing.

This is an enhancement or feature.

Summary

Formspree is phasing out legacy forms (email URLs).

<form action="https://formspree.io/your@email.com" method="POST"> is considered to be a legacy URL. Newly created forms utilize form_id URL path like <form action="https://formspree.io/f/a_form_id" method="POST">

Context

Formspree articles related to the upcoming change: https://help.formspree.io/hc/en-us/articles/360017735154-How-to-prevent-spam and https://help.formspree.io/hc/en-us/articles/360056076314

WebAdministratorArsova commented 2 years ago

How can I fix this? I dont found the line "

" in my code and I'm trying to fix this issue to make it work for my website

WebAdministratorArsova commented 2 years ago

How can I fix this? I dont found the line "

" in my code and I'm trying to fix this issue to make it work for my website

<form action="https://formspree.io/your@email.com"method="POST">``

WebAdministratorArsova commented 2 years ago

I think there are some files that are hide with this theme or I dont figure out how to edit it, for example this line that I post before I dont found what file contains this

WebAdministratorArsova commented 2 years ago

@raviriley hey dude, could you please help me? I want to get a better understanding of this theme, I want to fix this issue with the forms and I want to be able to edit the page for example I just comment some sections to try to remove it like the "team members" but I have still that space in "blank" in the web site

raviriley commented 2 years ago

@WebAdministratorArsova could you open an issue with the problem you're encountering?

WebAdministratorArsova commented 2 years ago

@WebAdministratorArsova could you open an issue with the problem you're encountering?

For sure but its the same topic as this conversation, my "contact" form is not working and I read in this post that I have to modify it to set my form id not just my email in the config.yml so then.. I dont know where I should modify this in the config we have a line to write down your email and it say that will use it for the contact form but is not working, you could see my repository here https://github.com/WebAdministratorArsova/WebAdministratorArsova.github.io

I just comment the part of the contact form while I could fix it

raviriley commented 2 years ago

@WebAdministratorArsova add the following to your _config.yml:

formspree_form_path: "f/a_form_id"

Notice this at the bottom of the config file:

# Uncomment following line to use Formspree form ID based URL instead of email based URL
# Details: https://help.formspree.io/hc/en-us/articles/360017735154-How-to-prevent-spam
# formspree_form_path: "f/a_form_id"