This topic has 4 replies, 2 voices, and was last updated 8 years, 9 months ago ago by Jack Richardson
After upgrading to Legenda Version 2.11, the site is not recognizing the customizations made to my contacts.php file. Specifically, it is not returning the “city and state” and “phone” fields that I added. In addition, once the user submits the form it is supposed to return a message that reads “Thank you! Your email has been sent.” but the default message of “ALL IS WELL, YOUR EMAIL HAS BEEN SENT.” is still being returned.
Hello,
Did you edit file in the parent theme or you created child theme?
If you made changes in the parent theme then all modifications were lost after theme update.
You need to create child theme https://codex.wordpress.org/Child_Themes and make changes there.
Best regards,
Jack Richardson.
I have never had a child theme, nor do I know how to create one. Changes have always been in my “contacts.php” file and worked fine until the update. I removed the default contacts.php file and replaced it with the customized one, but it is not working.
Hello,
As I see the mentioned fields are shown now:
http://storage1.static.itmages.com/i/16/0223/h_1456234371_9162786_a528ddec43.png
To change “success” message you need also edit wp-content/themes/legenda/framework/theme-functions.php file in line 1792. Also your new fields must be added to this file too, so you’ll receive them to your email.
Please note you’re editing parent theme and these files will be overwritten after each theme update, so you need create a child theme (read here https://codex.wordpress.org/Child_Themes how to do this) and copy files into there.
Best regards,
Jack Richardson.
Tagged: contacts.php, customization, themes, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up