Hi nevatonight,
To override the Dokan template files in your child theme, you need to ensure that you are placing the files in the correct directory structure within your child theme. Here’s a step-by-step guide:
Create the necessary folders in your child theme:
Inside your child theme directory, create a folder named dokan
. Within the dokan
folder, replicate the folder structure of the Dokan plugin. For example, if you want to override the details.php
file located in dokan-lite/templates/orders
, you need to create the same structure in your child theme.
Copy the template file to the child theme:
Locate the template file you wish to override in the Dokan plugin directory. For example, details.php
can be found at wp-content/plugins/dokan-lite/templates/orders/details.php
. Copy this file into the corresponding directory in your child theme. The final path should be your-child-theme/dokan/orders/details.php
.
Modify the template file:
Open the copied template file in your child theme and make the necessary modifications. WordPress will now use this version of the file instead of the original one from the plugin. Please ensure that the folder structure and file names exactly match those in the plugin. Also, verify that your child theme is active.
Feel free to reach out if you have any further questions or run into issues!
All the best,