
內容簡介
透過簡碼,輕鬆在 Genesis 中建立全寬度頁面區段 (Full width page sections)。必須使用Genesis 主題框架。
注意事項:
如果您在頁面上使用此簡碼,您應該在一個或多個碼的實例中封裝頁面上的所有內容,若需要建立全寬度區段,您必須將頁面/貼文佈局設置為「全寬度內容」。
其它動態插入內容的分頁和區段也可能會擴展到全寬度,但您可以為佈景主題的 style.css(最好是您的子主題的 style.css 或自定義 CSS 插件)添加自定義 CSS 以適應其大小。您需要獲取您不想擴展的部分的類別或 ID,並將屬性 “max-width: 1200px;” (或任何您想要的寬度) 和 “margin: 0 auto;” 分配給它。
版本1.2中添加了簡碼語法[gsps] ,它與簡碼語法[genesis-simple-page-section] 相同。您可以使用其中任何一個或同時使用。
基本簡碼語法:
[gsps color=”orange” width=”960″ outer_class=”” outer_css=”” inner_class=”” inner_css=””]
[/gsps]
關於簡碼語法、可用參數和顏色預設,請造訪EfficientWP上的插件頁面。
由 EfficientWP 創建。
外掛標籤
開發者團隊
② 後台搜尋「Genesis Simple Page Sections」→ 直接安裝(推薦)
原文外掛簡介
Easily make full width page sections in Genesis via shortcode. Must be using the Genesis theme framework.
Notes:
If you use this shortcode on a page, you should enclose all of your content on the page within one or more instances of the shortcode. In order for this plugin to create a full width section, you must specify the page/post layout to be “full width content.”
Breadcrumbs and other sections dynamically inserted in the inner content section may also stretch to full width, but you can add custom CSS to your theme’s style.css (preferably your child theme’s style.css, or a custom CSS plugin) to accommodate it. You need to get the class or id of the section you do not want to stretch, and assign the properties “max-width: 1200px;” (or whatever width you want the section to be) and “margin: 0 auto;” to it.
The shortcode syntax [gsps] was added in version 1.2, and it is identical to the [genesis-simple-page-section] syntax. You can use either one, or both.
Basic shortcode syntax:
[gsps color=”orange” width=”960″ outer_class=”” outer_css=”” inner_class=”” inner_css=””]
[/gsps]
For more about the shortcode syntax, available parameters, and color presets, please visit the plugin page on EfficientWP.
Created by EfficientWP.
