• Resolved horseguards

    (@horseguards)


    I need to add the URL of the form to the template, so the person who gets the message know from which page is receiving it.

    How could I do this?

    Thanks!

    • This topic was modified 4 years, 6 months ago by horseguards.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter horseguards

    (@horseguards)

    I found the solution! In case someone needs it, this is what I did:

    1 .- Inside your WordPress theme, create a directory named “wpforms-email”
    Within this new directory, create a file named “header-default.php” and paste this file
    https://gist.github.com/jaredatch/35fd8c03f40fcb916cf0aa45f9c969c7
    (I have done this to make sure that the next plugin update doesn’t overwrite the change)
    This header-default.php was meant to change the color of the notification’s background to white. You can leave it as it is o edit it from here.

    2 .- I added this code on line 267:
    <td align=”center”>
    <?php
    global $wp;
    echo home_url( $wp->request )
    ?>
    </td>

    3 .-It works!

    I am not a coder. If someone has a better solution, I am all ears!

    Plugin Support Ethan Choi

    (@ethanchoi)

    Hi @horseguards,

    You could also use the {page_url} Smart Tag in the Message of your notification settings. This will pull the page URL information into the notification email when the form is submitted. For more details on this Smart Tag and other available Smart Tags, please see our tutorial on using Smart Tags in WPForms.

    Hope this helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to add form’s URL’ is closed to new replies.