This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Custom widget in the theme – path problems

10 years ago

Hi,
I created a custom widget inside the theme with the Widget bundle framework and I ran in some trouble:
– the banner.svg that I placed in assets folder did not work, because of the wrong path (it started with the path to the plugin folder)
– the other path problem was for the template file, so I had to use this filter: siteorigin_widgets_template_file_* to make it work
So i think that there is a problem with the paths if the widget is defined in the theme. You also have a comment in SiteOrigin_Widgets_Widget_Manager class: “@todo examine this when using a widget in a theme folder.” .
We really like your plugins (builder and widget bundle) so I would really love it if the widget bundle framework would work smoothly inside a theme as well :)
Keep up the good work. This widget framework has great potential!
Take care!

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Have a different question or issue?

Start New Thread