Customizations in Contacts.php not working

This topic has 4 replies, 2 voices, and was last updated 8 years, 2 months ago ago by Jack Richardson

  • Avatar: kellideasephoto
    kellideasephoto
    Participant
    February 22, 2016 at 23:06

    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.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 23, 2016 at 08:39

    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.

    Avatar: kellideasephoto
    kellideasephoto
    Participant
    February 23, 2016 at 13:46

    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.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 23, 2016 at 14:37

    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.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.