WordPress.org

Support

Support » Plugins and Hacks » Widget Builder » [Resolved] [Plugin: Widget Builder] Custom template file not loading

[Resolved] [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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Timothy Wood

    @codearachnid

    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.

    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

    @codearachnid

    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 ‘[Resolved] [Plugin: Widget Builder] Custom template file not loading’ is closed to new replies.
Skip to toolbar