Title: [Plugin: Widget Builder] Custom template file not loading
Last modified: August 20, 2016

---

# [Plugin: Widget Builder] Custom template file not loading

 *  Resolved [mcdaniel.isaac](https://wordpress.org/support/users/mcdanielisaac/)
 * (@mcdanielisaac)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-builder-custom-template-file-not-loading/)
 * I was trying to setup a custom template by following the steps in your readme.
   However, it looks like the `get_template_hierarchy` function in `widget-builder.
   php` seems to strip the `.php` extension from the custom `widget.php` before 
   entering into the if block causing WordPress’ `locate_template` function to not
   find the custom file.
 * [http://wordpress.org/extend/plugins/widget-builder/](http://wordpress.org/extend/plugins/widget-builder/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Timothy Wood](https://wordpress.org/support/users/codearachnid/)
 * (@codearachnid)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-builder-custom-template-file-not-loading/#post-2888068)
 * Hmm I apologize for not seeing this sooner, I’m not happy that I’m not notified
   of new posts.
 * I do see what you mean about the locate_template issue not having the extension
   in the file lookup. I will work on cleaning up the get_template_hierarchy method
   and fix the file missing ext.
 *  [ricjoh](https://wordpress.org/support/users/ricjoh/)
 * (@ricjoh)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-builder-custom-template-file-not-loading/#post-2888084)
 * I found a hack. Just create a file (or symlink) in that same directory called“
   widget” Then get_template_hierarchy will find that file and return the correct
   file. (.php)
 *  Plugin Author [Timothy Wood](https://wordpress.org/support/users/codearachnid/)
 * (@codearachnid)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-builder-custom-template-file-not-loading/#post-2888096)
 * the template pathing folder has been updated in the lastest release v1.3 – let
   me know if you continue to have issues.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Widget Builder] Custom template file not loading’ is closed 
to new replies.

 * ![](https://ps.w.org/widget-builder/assets/icon-256x256.png?rev=985727)
 * [Widget Builder](https://wordpress.org/plugins/widget-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-builder/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Timothy Wood](https://wordpress.org/support/users/codearachnid/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-builder-custom-template-file-not-loading/#post-2888096)
 * Status: resolved