• Resolved nevatonight

    (@nevatonight)


    Hello,
    Which folder inside a child theme should I put edited files of the dokan-lite plugin so that the plugin successfully finds them?
    I try to edit the file “dokan-lite/templates/orders/details.php”, for this I created a php-file “dokan/templates/orders/details.php” in my child theme folder, but changes are not reflected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    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,

    Thread Starter nevatonight

    (@nevatonight)

    Thanks,
    Do I get it right that the folder structure should be copied incompletely, and “dokan/orders/details.php” should be used instead of “dokan/templates/orders/details.php” in the child theme folder?

    Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi nevatonight,

    You are right, to override a Dokan template in your child theme, use the folder structure dokan/orders/details.php instead of dokan/templates/orders/details.php. Make sure the path and file names match exactly to ensure the overrides work correctly.

    All the best,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.