Shortcode: [popup_link] – X-Plus
Popup Link
Popup Link – [ popup_link]
[ popup_link href='url' h='height-px' w='width_px']link-content-text/image[/popup_link]
The [ popup_link]
shortcode allows you display any web-address in a “popup” new browser window. The power of this is that you can display content such as help, media, or whatever, in a new browser window while the visitor continues to browser you site.
Shortcode usage: [ popup_link href='url' h='height-px' w='width_px']link-content-text/image[/popup_link]
- link-content-text/image – This shortcodes works much like a standard <a> tag. The content between the beginning and closing shortcode tags will be displayed to identify the popup link. Just like with a regular <a> tag, the link content can be an image or regular text. Note that this shortcode is fairly simple minded, and simply opens a minimally sized browser window. It does not use fancy JavaScript or Flash to accomplish the goal.
- href= – The ‘href’ works just like the ‘href’ in a regular <a> tag – it is the full url of a page you want displayed in a new browser window. This can be an external web page, or an internal site page. One of the intended uses of the Weaver Pop Up Page Template is to serve as a target for this shortcode. When you create a ‘Pop Up’ page, and also check the ‘Hide Entire Header’, ‘Hide Entire Footer’, ‘Hide Sidebars’, and ‘Hide Page on the Primary Menu’ per page options, the page will be displayed only with the content you enter into the page content area with the page editor. This content could be an image, a media player, or whatever you want.
- h= – The desired height of the popup window. Most browsers will honor this size request, but not all browsers do (Chrome has minimum window sizes at the moment, for example). This height should correspond to the exact height of your popup content. Most current browsers also will leave their top bar and other parts displayed along with your content.
- w= – The desired width of the popup window. Like the ‘h’ value, some browsers have minimum display sizes.