So I’m attempting to just build some of my own wordpress widgets, but I can’t see to get certain things to work. For example, I’m creating a simple widget with a color picker in it.
But when I click the input nothing happens. No errors in the console window either… I’ve tried this with a few different jquery type items, but none seem to work.
Is there something I’m doing wrong here to get this to work?
Thanks for that. That was actually the first one I tried. It seems like nothing with jquery will work though. In fact, I just downloaded a widget that someone else built that is just the color picker. It won’t work in the BB…but when I go to the appearance->widgets and just throw it in one of those it works?
Before I tried the color picker, I tried to create a font-awesome icon picker as well, and that didn’t work. I thought it was just my code, but now that I try this plugin and it isn’t working either I’m wondering what it might be…
Do you mind sharing what kind of Widget you are trying to make? Just curious as to maybe we have a module that can handle the task? Also, you might just want to create a custom module as opposed to creating a widget?
Regarding the font-awesome icon picker, we have our own Icons module you can use. I suggest you give that a shot.
Thanks for the detailed explanation. Exporting a page layout as a template can already be done. After creating the layout you wanted, just hit Tools > Save Template. This should allow you to apply/append the said layout to another page.
Saving a Row/Module as a template is currently in the works together with the Global Rows and Modules(which I’m pretty excited about). You can find more BB goodies in store for you in the blog entry link below. http://forum.wpbeaverbuilder.com/beaver-builder-roadmap-july-2015/
For the widgets issue, I’ll assign someone from the team that can assist you further in that regard.
When I wrote the code myself I was enqueuing the css/js using the wp_enqueue_script action. However, even though I have it on my page, the $(‘.my-color-picker’).wpColorPicker(); is not showing up when I view page source from the browser?
Also, just to be sure that it wasn’t my coding, I actually installed this simple widget (you can see the exact code on the link below):
I just looked at the documentation, and I think I might be able to accomplish this with custom modules. I’m going to jump into that and see if I can get one done.