i4w_redirect
Usage
This shortcode enables you to redirect a visitor to another page on your site or off your site.
The shortcode may be run in "autorun" mode, in which case the visitor is automatically redirected, or it may be used as a link.
[ELSE_redirect] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| redir | The URL to which a visitor should be sent to. | None | Yes |
| autorun | Defines whether a visitor will be automatically sent to the specified URL or whether a click is required. | 0 (no) | No |
| newwindow | Defines whether a visitor will be sent to the specified URL in a new browser window or not. | 0 (no) | No |
| buttontext | Defines the text to be displayed on a submit button. | Submit | No |
| buttonimage | Defines whether an image is displayed in lieu of an HTML submit button. | None | No |
| buttonstyle | Provides additional CSS instructions to be applied to an HTML submit button. | None | No |
Example
The visitor will be sent to the /info page when they click on the submit button:
[i4w_redirect redir='/info']
The visitor will automatically be sent to the /info page:
[i4w_redirect redir='/info' autorun='1']
The visitor will automatically be sent to the /info page in a new browser window. Please note that this functionality is dependent upon browser settings allowing popup windows:
[i4w_redirect redir='/info' autorun='1' newwindow='1']
The visitor will automatically be sent to the /info page at disney.com:
[i4w_redirect redir='http://disney.com/info' autorun='1']
The text to be displayed on the submit button:
[i4w_redirect redir='/info' buttontext='Click here']
Any CSS style instructions that you want applied to the submit button:
[i4w_redirect redir='/info' buttonstyle='font-size:2.0em;font-weight:bold;']
The image to be displayed in lieu of an HTML submit button:
[i4w_redirect redir='/info' buttonimage='http://domain.com/image.png']