plugin-icon

PFT – Widget Spacing Control

제작자: piftoworks·
Set per-widget top and bottom margins separately for desktop and mobile. Supports negative values.
버전
1.2.3
최근 업데이트일
Jun 9, 2026
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:

  1. A triple-ID selector (#id#id#id) raises specificity to 0-3-0-0, beating typical theme selectors.
  2. !important is added on every declaration as a second line of defense.
  3. 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.

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 7.0
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.