Closed picocodes closed 3 years ago
@sufyanism We need a doc for how to override the templates of GP in the theme.
@wpdev10 Can you clarify? Are you talking about replacing strings with Loco, as is shown in the ticket or something else?
I am talking about overriding templates in the theme. Like we do in UWP https://userswp.io/docs/developers/override-templates/
Rough Draft of steps
Copy the template you want to change, say for example: wpinv-invoice-print.php -- copy it from /invoicing/wpinv-invoice-print.php to a folder in your theme called theme/invoicing/wpinv-invoice-print.php
From here you can edit the template without having to edit the main files.
@Stiofan @picocodes Can you confirm if the path slug is gonna be /invoicing/ or /getpaid/ ?
Yes use invoicing
On Mon, May 31, 2021, 15:28 Sufyan bin Uzayr @.***> wrote:
Rough Draft of steps
1.
Copy the template you want to change, say for example: wpinv-invoice-print.php -- copy it from /invoicing/wpinv-invoice-print.php to a folder in your theme called theme/invoicing/wpinv-invoice-print.php 2.
From here you can edit the template without having to edit the main files.
@Stiofan https://github.com/Stiofan @picocodes https://github.com/picocodes Can you confirm if the path slug is gonna be /invoicing/ or /getpaid/ ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AyeCode/invoicing/issues/593#issuecomment-851457440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYCZ4AAXUOOFPC3Q5JDZLDTQN6GZANCNFSM45ROS3VQ .
Need correction for "copy it from /invoicing/wpinv-invoice-print.php" Change it to "copy it from /invoicing/templates/wpinv-invoice-print.php"
Done
https://wordpress.org/support/topic/item-for-subscriptions/