Preserve changed file after update
Author | Posts |
---|---|
July 16, 2014 at 11:02 pm 23676 | |
Duncan | 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! |
July 17, 2014 at 3:58 pm 23712 | |
Sk | Hello mattesar, 1. Create a folder name as our plugin name (WPUF/WP-User_Frontend) on your theme. This file will replace plugins dashboard template. Thank you |
July 17, 2014 at 6:02 pm 23721 | |
mattesar | Awesome, thanks! 🙂 |
July 19, 2014 at 8:34 pm 23780 | |
John | I’ve being trying to get this to work without success. I tried the following: /themes/tewntytwelve-child/WPUF/WP-User_Frontend/class/render-form.php Maybe this only works for template files? |
July 20, 2014 at 12:26 pm 23792 | |
Sk | Hello John, Please don’t try this for Thank you |
August 19, 2014 at 4:35 am 25475 | |
Harsha | 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. |
August 21, 2014 at 5:42 pm 25646 | |
Sekander Badsha | Hello Harsha, |
August 23, 2014 at 2:04 am 25688 | |
Aaron | 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! |
October 21, 2014 at 5:24 pm 28815 | |
Duncan | 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. |