• Resolved sediqpir

    (@sediqpir)


    Hello,

    I’m encountering an issue with the WC Vendors plugin on my WordPress website and could use some guidance. Here’s the problem I’m facing:

    I’ve made some modifications to a file called “denied.php” within the WC Vendors plugin. Typically, this file resides at the following location: “/files/example-domain/wp-content/plugins/wc-vendors/templates/dashboard/denied.php”. However, to ensure my changes are maintained across updates, I decided to place a customized version of this file in my child theme directory, specifically here: “/public_html/example-domain/wp-content/themes/voice-child/wc-vendors/templates/dashboard/denied.php”.

    Despite placing the modified file in the correct location within my child theme, my website continues to use the original version of “denied.php” from the plugin’s directory. This poses a significant issue as any updates to the WC Vendors plugin would overwrite my customizations, reverting the file back to its original state.

    I’m seeking assistance on how to ensure that my website prioritizes the customized version of “denied.php” located within the child theme directory over the default file from the plugin’s directory. Any insights or recommendations on resolving this issue would be greatly appreciated.

    Thank you in advance for your help!

Viewing 1 replies (of 1 total)
  • Hi @sediqpir ,

    Good day, and thanks for reaching out.

    It appears that the edited template was not placed in the recognised location.

    Instead of the current /themes/voice-child/wc-vendors/templates/dashboard/denied.php, could you place it in this location instead:

    /themes/voice-child/wc-vendors/dashboard/denied.php

    Here’s a related guide on How to override a template.

    Please let me know if that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with WC Vendors Plugin: Child Theme File Overrides Not Working’ is closed to new replies.