Home Forums Plugin Support WP User Frontend Pro Preserve changed file after update

This topic is: resolved

This topic contains 8 replies, has 7 voices, and was last updated by  Duncan 4 years, 7 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #23676

    mattesar
    Member
    Post count: 4

    Hi,

    I love the plugin so far, makes my development work a lot easier. I want to change the dashboard view (called by [wpuf_dashboard], and I found that that the layout is stored in /templates/dashboard.php.

    I have changed this file and it works perfectly, however is there any way I can make an override version of the file, so that when WPUF updates, it won't get overwritten and I don't have to manually upload dashboard.php again?

    I'm talking about something like how EDD does it https://easydigitaldownloads.com/docs/customizing-the-checkout-cart-template/ – create a new folder and put the override files in it.

    I've searched the forums and can't find any answer, sorry if I missed it. Thanks!

    #23712

    Sk
    Moderator
    Post count: 371

    Hello mattesar,

    1. Create a folder name as our plugin name (WPUF/WP-User_Frontend) on your theme.
    2. Create the directory and the file (/templates/dashboard.php) in that folder.

    This file will replace plugins dashboard template.

    Thank you

    #23721

    mattesar
    Member
    Post count: 4

    Awesome, thanks! 🙂

    #23780

    John
    Member
    Post count: 63

    I've being trying to get this to work without success.
    I have a modified wpuf-functions.php and render-form.php

    I tried the following:

    /themes/tewntytwelve-child/WPUF/WP-User_Frontend/class/render-form.php
    /themes/tewntytwelve-child//WP-User_Frontend/class/render-form.php
    /themes/tewntytwelve-child/WPUF/wp-user-frontend-pro/class/render-form.php
    /themes/tewntytwelve-child/wp-user-frontend-pro/class/render-form.php

    Maybe this only works for template files?

    #23792

    Sk
    Moderator
    Post count: 371

    Hello John,

    Please don't try this for wpuf-functions.php and render-form.php

    Thank you

    #25475

    Harsha
    Member
    Post count: 2

    Hi, I tried creating a folder in my active theme and it did not use the modified template files. My plugin folder for WP User Frontend Pro is “wp-user-frontend-pro” and I created the following folder structure inside my theme directory: “/wp-user-frontend-pro/templates/dashboard.php”. With this it does not appear to use the custom template file. Any suggestions on why would be appreciated. Thanks in advance.

    #25646

    Sekander Badsha
    Member
    Post count: 2067

    Hello Harsha,
    Did you copy-pasted our file on your directory? or made one from scratch?

    #25688

    Aaron
    Member
    Post count: 39

    You need to create a Folder named ‘wpuf' in your theme folder (use LOWERCASE folder name wpuf) and then put ‘dashboard.php' or any other template file in there. Do not create ‘template' folder.

    Hope this helps everyone!

    #28815

    Duncan
    Member
    Post count: 1

    Thanks for that I was going round in cicles – contrary to other answers Aaron is correct – you need to create a Folder named ‘wpuf’ in your theme folder (use LOWERCASE folder name wpuf) and then put ‘dashboard.php’ or any other template file in there. Do not create ‘template’ folder.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Preserve changed file after update’ is closed to new replies.