Twenty Twelve 邊攔寬度

Twenty Twelve 佈景調整邊攔寬度

Twenty Twelve 佈景主題的設計是全寬度為 960pix,邊欄 (sidebar) 的寬度只有 250pix,對於置放廣告或其他用途是小了一點,邊欄與主要文章之間還有很大的空間來調整,可以利用修改 CCS 將邊欄寬度改為 300pix。
Twenty Twelve 佈景修改系列教學:

1. Twenty Twelve 佈景加入 Logo 圖標
2. Twenty Twelve 佈景調整邊攔寬度

Twenty Twelve 官方網站有寫出規格:

Quick Specs (all measurements in pixels)

  • The main column width is 625 except in the full-width layout where it’s 960; sidebar width is 250.
  • Featured image width is 624 (height is flexible)—these images are displayed on displayed on “standard” posts; posts without a specific format such as image, aside, link, or quote.
  • The suggested header image dimensions are 960 by 250 (width, height). However, both are flexible so you can upload a smaller cropped image if you wish. The width is limited to 2000.

修改方法:

WP 控制台 >> 外觀 >> 自訂 >> 附加的 CSS

加入下面的 CCS 代碼:

按發表,邊欄的寬度已修改成 300pix。

WordPress Theme Editor

YUNGKE 沒有厲害的技術,只會小站小弄一番,對大系統架構暫無信仰,咖啡的癮君子,簡約的工作者,將事情變的簡單,將簡單的事情做好。

Leave a reply:

Your email address will not be published.

Site Footer