內容簡介
使用此小工具,您可以在 WordPress 標準的編輯器中創建頁面,然後將其拖放到任何小工具區域 - 您甚至可以嵌入短代碼、視頻等等,所有這些都可以在普通的可視化編輯器中完成,而不必在文本小工具中輸入 HTML。
而且,您甚至可以在很大程度上控制小工具,這意味著它可以隱藏並在需要時顯示。
這使得使用過程更加簡單,並且被證明在創建配置文件、側欄視頻等方面非常受用。
而且,您無需管理員訪問權限即可編輯屬於您的側欄內容!
在一些主題中,如果 CSS 編寫不良,您可能會遇到問題,因此在在關鍵現場網站使用之前,應該用不同的瀏覽器測試該小工具以確保其完整性。
該小工具不會在所選擇的頁面上顯示。因此,如果單擊頁面,該小工具將從側邊欄中消失。
如果要翻譯小工具界面,則所需文件位於名為 lang 的子文件夾中。只需將 spec-page-widget-en-US.po 文件複製到您的語言文件夾中(spec-page-widget-xx-XX.po),然後在 poedit 中加載它並更改需要更改的內容即可。
如果您創建了一個翻譯並且希望將您的語言文件包含在該插件中,請聯繫我們 spectacu.la ,我們將盡力添加它。
安裝:
1.將 spec-page-widget.php 和 lang/ 上傳到 /wp-content/plugins/spec-page-widget/ 或 /wp-content/mu-plugins/ 目錄。如果目錄不存在,請創建它。
2.透過 WordPress 中的 “插件” 菜單激活該插件。
3.您現在應該會在 “小工具” 菜單下看到小工具。將該小工具拖放到側欄中即可。
4.將小工具放到側欄中後,您應該會看到此小工具的配置。
配置:
1.首先選擇您要顯示的頁面。
2.如果要顯示標題,請勾選顯示標題選項。這會提供兩個更多的選項,“鏈接標題”和“替代標題”。如果要鏈接到源代碼或使用其他標題,請在此處輸入它們。
3.接下來,我們有一個選項,可以使用節錄而不是完整內容。
預設情況下,WordPress 不會允許您為頁面創建節錄,因此除非您使用了其他插件來創建節錄,否則將生成節錄。
4.隱藏普通 WordPress 頁面列表中的頁面。
這讓您從 WordPress 的其他部分中刪除到該頁面的鏈接。如果您有兩個調用同一頁面的小工具,那麼在其中一個中隱藏該頁面將在所有小工具中隱藏它。
5.最後保存更改。
外掛標籤
開發者團隊
原文外掛簡介
With this page widget you can create a page in the normal WordPress editor and then drop it in any widget space – you can even embed shortcodes, videos and so on, all from the usual visual editor, rather than having to type HTML into a text widget.
And you can even control the widget to a significant degree, meaning it can be hidden and revealed as and when you require it.
This makes for a much easier to use process and has proven hugely popular with our users for the creation of profiles, sidebar videos and more.
And you no longer need admin access to be able to edit sidebar content belonging to you!
In a few rare cases, with poorly coded CSS in themes you may run into problems, so you should test this widget with your theme, across several browsers, before using it on a critical live site.
The widget will not show up on the page that is chosen to show in the widget. So if you click through to the page the widget will disappear from the sidebar.
If you want to translate the widget interface the files need for that are held in a sub-folder called lang.
Just copy the spec-page-widget-en-US.po file to match your language (spec-page-widget-xx-XX.po) then load it up in poedit and change what you need to change.
If you create a translation and you’d like your language file included with the plugin contact us at Spectacu.la and we’ll see about adding it.
The install
Upload spec-page-widget.php and lang/. to /wp-content/plugins/spec-page-widget/ or /wp-content/mu-plugins/ directory. If the directory doesn’t exist then create it.
Activate the plugin through the ‘Plugins’ menu in WordPress
You should now see the widget show up under ‘widgets’ menu. Drop that widget into a sidebar.
With the widget in the sidebar you should see the config for this widget.
The config
First select the page you’d like to show.
If you want a title to show tick the show title option. This makes two more options available, ‘link title’ and ‘alternative title’. If you want to link to source or use another title enter them in this new area.
Next we have an option to use an excerpt rather than the full content.
By default WordPress won’t let you create an excerpt for pages so one will be generated unless you’ve used another plugin to create an excerpt in which case that’ll be used.
Hide the page from the normal WordPress list of pages.
This lets you to remove links to that page from other parts of WordPress that use the wp_list_pages() call.
If you have two of these widgets both calling the same page then hiding the page in one will hide it in all.
Finally hit save.
