內容簡介
使用短碼可以製作一個置頂側邊欄,並將其放置在任何地方。
短碼:
建立側邊欄後,您將獲得短碼。
管理置頂側邊欄:
在 wp 主控台中,有一個名為 "Sticky Settings" 的菜單,可以添加和刪除置頂側邊欄。
當您添加置頂側邊欄後,您將看到顯示側邊欄的短碼,然後您將能夠在 "Widgets Area" 中看到一個新的側邊欄區域。
只需將任何小工具拖到側邊欄中,並通過短碼在頁面、模板或其他任何地方顯示。
顯示置頂側邊欄
創建一個置頂側邊欄後,您將獲得類似這樣的短碼:[sticky_sidebar 1],[sticky_sidebar 2] ......
只需在 WordPress 頁面或文章中輸入想顯示的內容:[sticky_sidebar 1](例如)。
或者使用以下 PHP 代碼在模板中顯示:echo do_shortcode(‘[sticky_sidebar 1]’);(例如)
外掛標籤
開發者團隊
原文外掛簡介
Make a sticky sidebar and place it anywhere with shortcode.
Shortcode :
You will be get the shortcode after creating the sidebar
Manage Sticky Sidebars :
In wp dashboard , there is a menu called “Sticky Settings” to Add and Remove a Sticky Sidebar.
As you will add a sticky sidebar, you will see the shortcode to display the sidebar and then you will be able to see a new sidebar area in “Widgets Area”.
Just drag any widget in the sidebar and display through the shortcode in a page, template or anywhere.
Display Sticky Sidebar
After creating a sticky sidebar, you will be provided a shortcode like : [sticky_sidebar 1], [sticky_sidebar 2] …
Just write in wordpress pages or posts where you want to display : [sticky_sidebar 1] (for example)
Or use this php code to display in a template : echo do_shortcode(‘[sticky_sidebar 1]’); (for example)
