Simple Aweber Integration – Installation
- Upload the entire simple-aweber-integration.zip directory to the /wp-content/plugins/ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Insert your Aweber JavaScript from code in the settings page.
- Change default settings where necessary.
Simple Aweber Integration – Documentation
Attaching form to posts and pages
- Find your JavaScript code at Aweber. Pick the list you want it for. The JavaScript code is under Web Forms -> YOUR_FORM_NAME -> Publish -> I will install my form -> JavaScript snippet. It will look like this:
<script type=”text/javascript” src=”http://forms.aweber.com/form/45/230379345.js”></script> - Pick where to show it. Default option is at end of post.
- Pick your form display option. Default is removing footer and only displaying header and entry form horizontally.
- Set priority if necessary. Should you have several plugins attaching content to post or page content, you can stear which content gets output first.
Using individual shortcodes in posts and pages
You have the option of posting your form with the shortcode:
[[simpleaweber js=”YOUR_AWEBER_JAVASCRIPT” style=”YOUR_STYLE”]]
Both settings are optional. Detail description for those two options:
- Setting the form JavaScript individually with option js=”YOUR_AWEBER_JAVASCRIPT”.
- You can change the form display using one of the following stylings:
- style=”all” : Horizontal, all
- style=”nheader” : Horizontal, no header
- style=”nfooter” : Horizontal, no footer (Default)
- style=”nhnf” : Horizontal, no header and no footer
- style=”original” : Original form styling
If you dont provide these options, the settings from the plugin settings page are taken.
Example for form with horizontal styling with no header or footer with individual JavaScript code:
[[simpleaweber js=”<script type=”text/javascript” src=”http://forms.aweber.com/form/45/230379345.js”></script>” style=”nhnf”]]
Please note the use of double quote symbols used.
Using individual shortcodes in your template
Should you want to add your Aweber form straight to your template, use the shortcode as described above, combined with function do_shortcode.
Example for form with horizontal styling with no header or footer with individual JavaScript code that you can insert into your template:
<?php echo do_shortcode(‘[[simpleaweber js=”<script type=”text/javascript” src=”http://forms.aweber.com/form/45/230379345.js”></script>” style=”nhnf”]]’); ?>
Please note the use of double quote symbols versus single quote symbols used.
Other resources
If you still have questions, check out the Q&A’s I run here: https://schurpf.com//category/q&a/