Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hello
I started to create my custom widgets, most of elements looks good, I can use my widget, I can enter text etc.
But I have nothing on my page after add it for my site. My first widget should show me just H1 with given text. So, can you suggest me any resolution for this problem?
Hi Paweł,
Are you using the SiteOrigin Widgets Bundle to create your widgets?
If you are, please give the section on HTML Templates a read.
If you aren’t, I would take a look at a few tutorials on developing WordPress widgets as they’ll outline how to output widget data.
There is all what I wrote (at the left, you can see my folder structure – its default)
Hi Paweł,
The code in the provided screenshot looks correct. Can you please send me the complete plugin so I can run some tests against it?
Of course, can I send by dropbox? It’s a link: https://www.dropbox.com/s/5emevgtt8bmjwan/hello-world.zip?dl=0
Hi Paweł,
Thanks. The siteorigin_widget_register function needs to pass a valid widget id to function correctly. The widget id you’re setting isn’t correct. Please change:
To:
So stupid mistake :P
You are awesome, thank you so much :)))
Hi Paweł,
No worries mate. Great to hear it’s working without issue for you now! :)
Please be sure to post another thread if you have any other questions.