
內容簡介
這是一個 WordPress 外掛,可顯示一個自訂文章類型的新聞功能,並採用水平滾動方式顯示。
此外掛使用以下 GitHub 專案:
Smooth-Div-Scroll by tkahn
示範
使用方式
此外掛可以透過 [presspage] 短代碼或是包含的 page-press.php 模板直接使用。短代碼包含兩個選擇性參數,如果留空,則會使用預設的文章縮圖大小。選擇性參數為 width 和 height,控制使用圖片的尺寸。如果其中一項留空,則兩個參數將使用相同的值。
預設情況下, presspage.css 文件定義的寬度為930像素,高度為255像素。您可以在 CSS 中添加高度和寬度到 #makeMeScrollable ID 中來更改這些值。
範例
[presspage]
[presspage width=200]
[presspage height=500]
[presspage width=200 height=500]
外掛標籤
開發者團隊
原文外掛簡介
A WordPress plugin to display a custom post type for press features in a horizontal sliding scroll
This plugin uses the following GitHub project:
Smooth-Div-Scroll by tkahn
Demo
Usage
Plugin can be used out of the box with the [presspage] shortcode or the included page-press.php template. The shortcode includes two optional parameters, if left blank, default post thumbnail size will be used. The optional parameters are width and height and control the dimensions of the images used. If one is left blank, the same value will be used for both.
By default, the presspage.css file defines the width to be 930px and the height to be 255px. These can be changed in your CSS by adding your height and width to the #makeMeScrollable ID.
Examples
[presspage]
[presspage width=200]
[presspage height=500]
[presspage width=200 height=500]
