
內容簡介
這款外掛允許您輸入簡碼以添加頁面/文章中的連結,這些連結將在彈出窗口中打開。 Alligator popup 中的選項只能在簡碼中輸入,因此該外掛沒有管理頁面。
簡碼:
在帖子或頁面文字中希望出現鏈接的位置添加簡碼。簡碼有 url、高度和寬度等參數,應該採用以下格式:
[popup url="https://cubecolour.co.uk/wp" height="300" width="300" scrollbars="yes" alt="popup"]Link Text[/popup]
輸入您自己的鏈接文本,以及用於彈出窗口的 url、寬度和高度值,以及鏈接的 alt 文本。
如果未輸入 alt 文本、高度和寬度的值,則會使用寬高為 400 像素的預設彈出窗口值。
捲軸默認啟用,如果在簡碼中未添加捲軸參數,則會顯示捲軸。如果不希望彈出窗口上出現捲軸,請在簡碼中添加參數 scrollbars="no": scrollbars="no"
如果未輸入 alt 文本的值,則連結中將使用空 alt 標籤。
HTML 鏈接:
除了使用簡碼外,您還可以按以下格式包含您的鏈接:
<a href="https://cubecolour.co.uk/wp" class="popup" data-height="300" data-width="300" data-scrollbars="0" alt="my link text">Link Text</a>
這對於文字小工具可能很有用,或者您可以在主題的模板文件中建立鏈接。
注意事項:
如果您使用任何其他帶有名稱為“popup”的簡碼的外掛程序(或主題),則無法使用此外掛程序。這不是因為該外掛程序的任何缺陷,而是因為應該使用插件而不是主題來實現像創建彈出鏈接等的簡碼。
在不使用瀏覽器窗口的移動設備上(例如 iPad),該鏈接將在新標籤中打開。
此插件是根據一位 WordPress.org 論壇用戶的帖子而編寫的,該用戶承諾如果他的創建彈出窗口的問題得到解決,他將與鱷魚搏鬥。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows you to enter a shortcode to add links to pages/posts which will be opened in a popup window. The only options in Alligator popup are entered in the shortcode, so there is no admin page for this plugin.
Shortcode:
Add a popup shortcode where you would like a link to appear within your post or page text. The shortcode has parameters for url, height and width and should be in the format:
[popup url="https://cubecolour.co.uk/wp" height="300" width="300" scrollbars="yes" alt="popup"]Link Text[/popup]
Include your own Link Text and values for the url the width & height of the popup, and the alt text fot the link.
If no values are entered for the alt text and the height and width, defaults of 400px are used for the width & height of the popup window.
Scrollbars are enabled by default and will show if the scrollbars parameter is not added to the shortcode. If you do not want scrollbars on your popup window, add the scrollbars parameter with the value “no” to the shortcode: scrollbars="no"
If no value is entered for the alt text, an empty alt tag will be used in the link.
HTML Link:
Instead of using the shortcode you can include your link in the format:
Link Text
This might be useful in a text widget, or you can build the link in a template file of your theme.
Note:
If you are using any other plugin (or a theme) that uses a shortcode with the name ‘popup’, you will not be able to use this plugin. This is not because of any shortcoming in this plugin, but because shortcodes such as those to create popup links should always be implemented in a plugin not a theme.
On mobile devices such as iPads which don’t use browser windows, the link will open in a new tab.
This plugin was written in response to a post by a WordPress.org forum user who promised to wrestle an alligator if his problem with creating popups was solved.
