Skip to main content

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

ParameterDescriptionDefaultRequired
redirThe URL to which a visitor should be sent to.NoneYes
autorunDefines whether a visitor will be automatically sent to the specified URL or whether a click is required.0 (no)No
newwindowDefines whether a visitor will be sent to the specified URL in a new browser window or not.0 (no)No
buttontextDefines the text to be displayed on a submit button.SubmitNo
buttonimageDefines whether an image is displayed in lieu of an HTML submit button.NoneNo
buttonstyleProvides additional CSS instructions to be applied to an HTML submit button.NoneNo

Example

The visitor will be sent to the /info page when they click on the submit button:

Shortcode
[i4w_redirect redir='/info']

The visitor will automatically be sent to the /info page:

Shortcode
[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:

Shortcode
[i4w_redirect redir='/info' autorun='1' newwindow='1']

The visitor will automatically be sent to the /info page at disney.com:

Shortcode
[i4w_redirect redir='http://disney.com/info' autorun='1']

The text to be displayed on the submit button:

Shortcode
[i4w_redirect redir='/info' buttontext='Click here']

Any CSS style instructions that you want applied to the submit button:

Shortcode
[i4w_redirect redir='/info' buttonstyle='font-size:2.0em;font-weight:bold;']

The image to be displayed in lieu of an HTML submit button:

Shortcode
[i4w_redirect redir='/info' buttonimage='http://domain.com/image.png']