[WordPress] 外掛分享: PFT – Widget Spacing Control

首頁外掛目錄 › PFT – Widget Spacing Control
WordPress 外掛 PFT – Widget Spacing Control 的封面圖片
全新外掛
安裝啟用
尚無評分
7 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.2.3 上架:2026-06-08

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PFT – Widget Spacing Control」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

PFT – Widget Spacing Control adds margin-top / margin-bottom inputs (desktop and mobile, separately) to every widget’s settings form. Negative values are supported, so you can both expand and tighten the space between widgets without adding empty spacer widgets.
Features

Per-widget top and bottom margin (px) for desktop and mobile
Negative values supported (e.g. -10 to tighten the gap)
Empty value falls back to the theme default
No settings page — inputs appear directly inside each widget’s form
Works with any theme (sidebar / widget area)
No external CSS file. No JavaScript. Single PHP file
No tracking. No external requests

How priority is guaranteed
To make sure your margin settings always win over theme and other plugin CSS:

A triple-ID selector (#id#id#id) raises specificity to 0-3-0-0, beating typical theme selectors.
!important is added on every declaration as a second line of defense.
Styles are output via wp_footer at priority 9999, so they load after all other styles.

Media queries are used to switch between desktop and mobile values cleanly (inline styles are intentionally avoided because inline !important would override @media rules).
Responsive breakpoints

Desktop: 769px and above
Mobile: 768px and below

Privacy
This plugin does not collect, store, or transmit any personal data. It only stores numeric margin values inside each widget’s settings.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon