Subscription form - WordPress

Create a newsletter subscription form for WordPress using AcyMailing

You created some contact lists and are ready to create and send awesome newsletters? Well first you'll have to give your users a way to subscribe to your contact lists!

The best way to do it is to show a subscription form somewhere on your website, and lucky for you we created one in the widgets section of your site ;)

Gutenberg

If you use Gutenberg to edit your posts or your pages and you and to insert an AcyMailing subscription form, you can simply add an AcyMailing subscription form block:

Once you have added your subscription form you will have several options on the right panel:

  • Title: the title of your subscription form, works like any other widget

  • Display mode:

    • If you select "Tableless", AcyMailing will use <div> elements to display your fields so you can customize them the way you want via CSS

    • If you select "horizontal", the fields will be displayed horizontally, can be used in a footer for example

    • If you select "vertical", the fields will be vertically aligned

  • Subscribe button text: By default, the text "Subscribe" will be shown on the subscription button that submits the form. But you can display any text on it.

    You can even use the value "ACYM_MY_SUBSCRIBE_BUTTON_TEXT", then go in the AcyMailing configuration tab "Languages", edit the language files then add your new translation key. It's not that easy to do and requires some steps, but at least you can do it if you need ;)

If you don't see these option on the right toolbar and you subscription form is insert try to click on the Show more settings button in the block options:

Elementor

A very large number of WordPress users use Elementor to build their website, to make your life easier we created an Elementor widget to easily insert an AcyMailing subscription form.

First thing to do is to search the AcyMailing category and then insert the AcyMailing subscription form:

Then all of the options will appear in the left panel.

All of these options are the same as Gutenberg above.

Create the subscription form

In the "Appearance" => Widgets section of your site, you can drag&drop the widget named "AcyMailing: Newsletter subscription form" in the zone you want the form to be displayed:

Configure the form

  • Title: the title of your subscription form, works like any other widget

  • Display mode:

    • If you select "Tableless", AcyMailing will use <div> elements to display your fields so you can customize them the way you want via CSS

    • If you select "horizontal", the fields will be displayed horizontally, can be used in a footer for example

    • If you select "vertical", the fields will be vertically aligned

  • Automatically subscribe to: The selected lists will be added on the form but they will be hidden, which means the user will be automatically subscribed to those lists if he clicks the subscribe button

    Please do not select the same lists for the visible lists and this field, it has no interest. If you do so the lists won't be visible.

  • Displayed lists: The selected lists will be displayed as visible on the form

  • Lists checked by default: The selected lists will be checked by default, if they are shown on the form.

    Some countries do not allow you to check lists by default if it isn't for "non-profit". This option will let you easily check some lists and not others in order to stay compliant with your local rules.

  • Display the lists: Choose if you want to show the lists before or after the fields

  • Fields to display: You can select the fields you want to display on your form. If you use AcyMailing Enterprise, you will be able to create additional fields and select them the same way.

  • Display text mode: Choose if you rather want the text "Name" and "Email" to be inside the Name and Email fields or outside. It will act on all AcyMailing fields

  • Subscribe button text: By default, the text "Subscribe" will be shown on the subscription button that submits the form. But you can display any text on it.

    You can even use the value "ACYM_MY_SUBSCRIBE_BUTTON_TEXT", then go in the AcyMailing configuration tab "Languages", edit the language files then add your new translation key. It's not that easy to do and requires some steps, but at least you can do it if you need ;)

  • Subscribe button text for logged in users: The exact same option as the previous one, except that this text will only be used for the subscribe button if the current user is logged in on your website

  • Terms and conditions: You can select a WordPress post or page with this option, it will be shown at the bottom of the form (in a link creating another browser tab) and the user won't be able to submit the form if he doesn't tick the checkbox

  • Privacy policy: Same option as the previous one, useful if you want to have two separate articles for terms&conditions and privacy policy

Last updated