Customise Templates

Posted by: cathy

9th November 2022, 1:08 pm

cathy

@cathy

9 Nov 2022
1:08 pm

Hi there!

Thanks so much for the great plugin, it's been such a life safer.

I do have a question, is there a way to alter/customise a template without working in the plugin folder?

Specifically, I would like to add a button to the reset password page and also change the text once the user has successfully changed their password.

I know some plugins allow you to add folders to your theme which overwrites the plugin templates, was just wondering if it's possible yet.

Last modified: 14th November 2022, 9:24 am by Peter Wilkinson

  • Forum Moderator
    Peter Wilkinson

    @wpenhanced

    14 Nov 2022
    9:27 am

    Hi Cathy

    Yes you can do this:

    1) Add a folder in your child theme called "somfrp-template". Then copy the template names over to this folder like: "lost_password_reset_form.php, lost_password_form.php, lost_password_reset_complete.php"

    2) You can customise the text using a plugin like loco translate or check this blog post to help: https://diviengine.com/snippet-change-woocommerce-text/

  • cathy

    @cathy

    14 Nov 2022
    11:49 am

    That's amazing, thanks so much!!

    I really appreciate the response.

  • cathy

    @cathy

    14 Nov 2022
    12:07 pm

    Hmm seems like I spoke too soon.

    I created a folder called "somfrp-template".

    Then I tried adding the templates to that folder (wp-content/themes/themename/somfrp-template)

    and

    I also tried adding it to another "templates" folder inside "somfrp-template" folder. (wp-content/themes/themename/somfrp-template/templates)

    Both didn't work, can you please advise

  • Forum Moderator
    Peter Wilkinson

    @wpenhanced

    16 Nov 2022
    3:13 pm

    Sorry please try somfrp-templates

    I had the missing "s" on the end of the folder name