Jan152012

How can I make a custom widget for subscription forms in WordPress?

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?



Comments for this Question are closed.

If you are looking for help, please ask a new question here.

We will be happy to help you!

3 Answers -

0 votes

James Bruce

January 15, 2012

1. 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?

0 votes

Sahil Dave

January 15, 2012

In 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. 

0 votes

Amberjalink

January 16, 2012

Thanks – 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).

James Bruce

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, 2012
Amberjalink

Thank you!

January 16, 2012