Amber asks:
How do I make a custom widget that
1) can include anything I want (not specifically posts or pages), for example either an ad, or a “call now for a quote” kind of box?
2) that can accept/post subscription forms like AWeber?
3 Answers -
James Bruce
January 15, 20121. If you’re using WordPress.com, that’s impossible.
2. If you’re using a self hosted WordPress.org install, that’s incredibly easy by just adding a text widget to wherever widgets are supported in your theme.
Sounds like you’re with the former?
Sahil Dave
January 15, 2012In wordpress.com websites you can add simple HTML codes as a widget to your website by going to Appearance > Widgets.
From there you can add a TEXT Widget and write some codes in it to work.
I had added a Image through HTML code to redirect the user to my Facebook Like Page.
Amberjalink
January 16, 2012Thanks – but that doesn’t help. (Self hosted) – unfortunately it looks like the site cut OFF part of my question. I know how to do a widget. I wanted to know how to do it code-wise, so that the widget appears in the widgets list on install of the theme every time. (i.e., if I wanted to install the theme on many sites and have the same widgets, I’d like to preload them to save work).
Are you coding your own widget via a plugin? In that case, just add the widget code to the themes functions.php file instead, and it will automatically appear every time the theme is used as you want.
January 16, 2012Thank you!
January 16, 2012