# Debug Log Guard - Manage a Runaway debug.log
Source: https://wpmultitool.com/docs/debug-log-guard/

so header/footer/nav lists are untouched. */ main :where(div, section, article, aside, details, figure, ul, ol, dl, a):has(> :is(p, li, dd, blockquote, .faq-answer, .prose, .feedback-result, .lead-message)) { container-type: inline-size; } main :where(p, li, dd, blockquote) { font-size: var(--font-size-prose); } /* Exceptions: content-sized flex items. Inline-size containment drops an element's intrinsic width to 0, so a flex child with no basis collapses. The check script (claude-tmp/wp-multitool/dev-browser/type-check.ts) flags any container narrower than 60px - add the class here. */ /* UA \`small\` is font-size: smaller (~0.83em) - inside 14px UI text that is 11.7px (the (EN) mark on /pl/). Hold it at the 14px UI floor. */ small { font-size: max(var(--font-size-2xs), 0.833em); } main .founder-text { container-type: normal; } /* must out-rank the :has() rule (0,0,2) */ main :where(li li, li p, dd p, blockquote p) { font-size: inherit; } /* ---- Type + vertical rhythm ------------------------------------------ The reset above zeroes EVERY margin, so spacing only exists where a rule puts it back by hand. Homepage and Pricing got that by hand; the static content pages never did, which is why they render welded together (the "2. Slow Database Queries" heading had a literal margin-top: 0). These defaults put it back ONCE, globally, so a new page is never born smooshed. The \`* + x\` owl selector only adds margin BETWEEN siblings - an element that OPENS a card or section still sits flush, so existing components keep working without having to unset anything. Paragraphs outside

are 16px; inside

the fluid \`main :where(p, ...)\` rule above wins (this one is zero-specificity). \`body\` stays 1rem so UI chrome that inherits is untouched. */ :where(p) { font-size: var(--font-size-body); } * + p { margin-top: var(--space-md); } /* 1rem */ * + h2 { margin-top: var(--space-2xl); } /* 4rem - major topic break */ * + h3 { margin-top: var(--space-xl); } /* 2rem - numbered sections */ * + h4 { margin-top: var(--space-lg); } /* 1.5rem */ /* A heading owns the thing under it - keep that pair tighter than the gap ABOVE the heading. Same specificity as the rules above, so source order decides: these win. h2 is a big heading (24px+) and 8px blended it into its body, so it gets 16px; the smaller h3/h4 still sit tight at 8px. */ h2 + * { margin-top: var(--space-md); } h3 + *, h4 + * { margin-top: var(--space-sm); } /* Noise overlay */ body::before { content: ""; position: fixed; inset: 0; opacity: 0.03; pointer-events: none; z-index: 9999; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); } /* Scanlines */ body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9998; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px); opacity: 0.4; } h1, h2, h3 { font-family: var(--font-mono); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; } a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: all var(--transition-med); } a:hover { color: var(--text); text-decoration-color: var(--accent); } a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* H3 inside

should inherit summary styling, not block heading defaults. */ summary > h3 { display: inline; font: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } /* Body copy line-length cap (50–75ch optimal) - applied to long-form prose only, not hero subhead, not full-width comparison/feature grids. */ .faq-answer, .module-content p { } #features .section-header p, #comparison .section-header p { margin-left: auto; margin-right: auto; } /* Tables shrink to 12-13px at mobile widths across the guide and comparison pages. Give the cells weight there so the smallest text on the site is not also the thinnest. */ @media (max-width: 768px) { td, th { font-weight: 500; } } /* Inline code is sized in em, so it shrinks with whatever it sits inside - nested in small text it reached 10.5px on /autoload-bloat/. Clamp it to the 12px floor and give small text the weight it needs to stay legible. */ code, kbd, samp { font-size: max(0.875rem, 0.875em); font-weight: 500; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { /* 0s, not the usual 0.01ms. A CSS animation whose start time the engine has not resolved yet is in its PENDING state, and Chrome paints the keyframe's \`from\` value for those frames - a duration of 0.01ms cannot suppress that, because the element is styled before the animation engine gets to it. For the homepage \`typing\` reveal (\`.cache-lie\`) that pending frame is \`max-width: 0\`. Measured on the live homepage at 20x CPU throttle: 5/5 loads painted 2 offset frames with 0.01ms, 0/4 with 0s. The 0.01ms idiom exists so \`animationend\` still fires; nothing in this theme listens for it (no animationend/animationstart/transitionend handler and no getAnimations() call in the frontend), so 0s costs us nothing. Do NOT reach for \`animation: none\` here instead: a \`typing\`-revealed element sits at \`max-width: 0; overflow: hidden\` until the \`forwards\` fill runs, so killing the animation strands it clipped unless (like the homepage \`.cache-lie\`) a reduced-motion rule sets the width directly. \`animation-fill-mode: none\` has the same trap. Duration is the only safe global lever. */ animation-duration: 0s !important; /* Collapsing the DURATION alone is not enough - a surviving delay would still leave the element on its unanimated state for that long before the zero-duration fill snaps it to \`to\` (for the homepage \`typing\` reveal that unanimated state is \`max-width: 0\`, i.e. invisible). Zero the delay too. */ animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; } body::before, body::after { display: none; } } /* ───────────────────────────────────────────────────────────────────── PAGE TITLE - shared H1 intro block for standalone marketing/docs pages ───────────────────────────────────────────────────────────────────── */ .page-intro { padding-block: var(--space-3xl) var(--space-2xl); border-bottom: 1px solid var(--border); } .page-title { font-family: var(--font-mono); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: var(--text); margin-block-end: var(--space-sm); text-wrap: balance; } /* The \`/ ""\` alt-text form keeps screen readers from reading the slashes. */ .page-title::before { content: "// " / ""; color: var(--accent); } @media (max-width: 768px) { .page-intro { padding-block: var(--space-2xl) var(--space-xl); } } /* Skip link */ .skip-link { font-weight: 500; position: absolute; top: -40px; left: 0; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); padding: 0.5rem 1rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); z-index: 10000; text-decoration: none; } .skip-link:focus { top: 0; } /* Header */ header\[role="banner"\] { position: sticky; top: 0; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); z-index: 100; padding: 1rem 0; } .header-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; } header\[role="banner"\] .logo { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 1rem; /* fixed: outside there is no size container */ color: var(--text, #e8e8e8); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.02em; } header\[role="banner"\] .logo svg { stroke: var(--accent, #c8ff00); } header\[role="banner"\] .logo-wordmark { display: block; height: 22px; width: auto; } @media (max-width: 880px) { header\[role="banner"\] .logo-wordmark { height: 18px; } } .nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; } .nav-links a { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 500; color: var(--text-muted, #a8a8a8); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s ease; } .nav-links a:hover { color: var(--text, #e8e8e8); } /* Current page: light the matching nav link in the accent, and keep it lit on hover. */ .nav-links a\[aria-current="page"\], .nav-links a\[aria-current="page"\]:hover { color: var(--accent, #c8ff00); } .nav-links .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-primary:hover { background: var(--text, #e8e8e8); color: var(--black, #0a0a0a); transform: translateY(-1px); } /* Header CTA - filled, and the one dominant action in the nav. It was ghosted originally so the free scan could dominate instead (LP audit gh #3); /scan/ left the nav on 2026-07-24, so "Buy Now" inherits that role. Hover inverts to the outlined treatment. */ .nav-links .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: 1px solid var(--accent, #c8ff00); cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-secondary:hover { background: transparent; color: var(--accent, #c8ff00); transform: translateY(-1px); } /* Hamburger toggle + mobile CTA: hidden on desktop */ .header-nav .nav-toggle, .header-nav .nav-cta-mobile { display: none; } /* Collapse to logo + Buy Now + hamburger wherever the full nav does not fit on one line: it needs ~830px, overflowed the page at 641-700px and wrapped the header to two rows at 768px. Same 1.5rem gutter as .container so the logo lines up with page content. */ @media (max-width: 880px) { .header-nav { padding-inline: 1.5rem; gap: 0.5rem; flex-wrap: nowrap; } .header-nav .nav-cta-mobile { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; min-height: 40px; /* The long-form templates stretch every .btn to 100% below 600px; this one is a .btn too and squeezed the logo onto two lines. */ width: auto; max-width: none; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; margin-left: auto; } /* Ghost variant of the mobile CTA (LP audit gh #3 - demote "Buy Now"). */ .header-nav .nav-cta-mobile.btn-secondary { background: transparent; color: var(--accent, #c8ff00); border: 1px solid var(--accent, #c8ff00); } .header-nav .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--border, #2a2a2a); cursor: pointer; } .nav-toggle-bar { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text, #e8e8e8); transition: transform 0.2s ease, opacity 0.2s ease; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(2) { opacity: 0; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); } .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; background: rgba(10, 10, 10, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links.is-open { display: flex; } .nav-links li { width: 100%; } .nav-links a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 14px 8px; font-size: var(--font-size-md); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links li:last-child a { border-bottom: none; } /* Hide the duplicate Buy Now inside the drawer on mobile */ .nav-cta-desktop-item { display: none; } header\[role="banner"\] { position: sticky; } } /* ───────────────────────────────────────────────────────────────────── DOCS SHARED STYLES ───────────────────────────────────────────────────────────────────── */ /* Anchor scroll offset for sticky header */ /* The sticky header is ~77px tall, so anything linked by fragment has to clear it. Section headings already did; the per-step ids and the skip-link target did not, which put a deep link from the HowTo schema behind the header. */ main section\[id\], main .steps-list li\[id\], #main { scroll-margin-top: 5rem; } /* Page Header - wrapper and h1 live in page-title-styles.php (.page-intro/.page-title) */ .page-header p { color: var(--text-muted); font-size: var(--font-size-lg); } /* Doc Header (module pages) - composite header (breadcrumb, badges, H1, doc-nav), so it keeps its own tighter bottom spacing instead of .page-intro's. The H1 itself is the shared .page-title (page-title-styles.php). */ .doc-header { padding: var(--space-3xl) 0 var(--space-xl); border-bottom: 1px solid var(--border); } .doc-header .one-liner { color: var(--text-muted); font-size: var(--font-size-xl); } /* Doc Badges */ .doc-badges { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); } .badge { display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--border); } .badge-optimization { background: #1e3a8a; color: #93c5fd; border-color: #2563eb; } .badge-control { background: #4c1d95; color: #d8b4fe; border-color: #7c3aed; } .badge-lite { background: var(--surface); color: var(--text-dim); border-color: var(--border); } .badge-pro { background: var(--accent); color: var(--black); border-color: var(--accent); } /* Entries that apply to every install. */ .badge-all { background: var(--surface); color: var(--accent); border-color: var(--accent); } .badge-guide { background: #134e4a; color: #99f6e4; border-color: #0d9488; } /* Jumpstart: a standalone product, so its docs badge keeps the accent without borrowing the Pro edition's meaning. */ .badge-jumpstart { background: var(--accent); color: var(--black); border-color: var(--accent); } /* Documentation screenshots */ .doc-shot { margin: var(--space-md) 0 var(--space-sm); } .doc-shot a { display: block; line-height: 0; } /* Screenshots scale down to ~260px on a phone, where a wp-admin capture is unreadable. The link to the full-size file needs a cue that survives touch, so this is always visible rather than hover-only. */ .doc-shot a.doc-shot-zoom { position: relative; /* Shrink-wrap the image so the cue sits on it, not far off to the right when the screenshot is narrower than the column. */ display: inline-block; max-width: 100%; } .doc-shot-cue { position: absolute; top: 0; right: 0; padding: 4px 8px; background: var(--black); color: var(--accent); border: 1px solid var(--accent); font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.05em; } .doc-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s; } .doc-shot a:hover img, .doc-shot a:focus-visible img { border-color: var(--accent); } .doc-shot figcaption { margin-top: var(--space-xs, 0.5rem); font-family: var(--font-mono); font-size: var(--font-size-2xs); color: var(--text-dim); } /* On-page Nav */ .doc-nav { display: flex; gap: var(--space-md); margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .doc-nav::-webkit-scrollbar { display: none; } .doc-nav a { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; padding: var(--space-xs) 0; transition: color var(--transition-med); } .doc-nav a:hover { color: var(--accent); } /* Main Content */ main { padding: var(--space-2xl) 0 var(--space-3xl); } main section { margin-bottom: var(--space-2xl); } main h2 { font-family: var(--font-mono); font-size: var(--font-size-2xl); font-weight: 600; margin-bottom: var(--space-lg); color: var(--text); } main h2::before { content: "$ "; color: var(--accent); } main p { color: var(--text-muted); line-height: 1.7; } /* Module Grid (hub page) */ .module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } .module-card { display: block; background: var(--surface); border: 1px solid var(--border); padding: var(--space-lg); text-decoration: none; transition: border-color var(--transition-med), transform var(--transition-fast); } .module-card:hover { border-color: var(--accent); transform: translateY(-2px); } .module-card-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); } .module-card h3 { font-family: var(--font-mono); font-size: var(--font-size-body); font-weight: 600; color: var(--text); margin-bottom: var(--space-xs); } .module-card-header h3 { margin: 0; } .module-card p { font-size: var(--font-size-prose); font-weight: 500; color: var(--text-muted); line-height: 1.5; margin: 0; } /* Getting Started / Steps List */ .getting-started ol, .steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0; } .getting-started ol li, .steps-list li { counter-increment: step; padding: var(--space-md) 0 var(--space-md) var(--space-2xl); border-bottom: 1px solid var(--border); position: relative; font-size: var(--font-size-prose); color: var(--text-muted); } .getting-started ol li:last-child, .steps-list li:last-child { border-bottom: none; } .getting-started ol li::before, .steps-list li::before { content: counter(step); position: absolute; left: 0; top: var(--space-md); font-family: var(--font-mono); font-size: var(--font-size-md); font-weight: 700; color: var(--accent); width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 1px solid var(--accent); } .steps-list li strong { display: block; font-family: var(--font-mono); font-size: var(--font-size-md); color: var(--text); margin-bottom: var(--space-xs); } .steps-list li p { margin: 0; font-size: var(--font-size-prose); } .steps-list li p + p, .faq-item p + p { margin-block-start: var(--space-sm); } /* Paths and filenames marked with \`backticks\` in docs-data. Long paths must wrap on a phone instead of pushing the page sideways. */ #main p code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-elevated); padding: 1px 5px; color: var(--text); overflow-wrap: anywhere; } /* Jump links under the intro of a task guide. */ .doc-quick-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); padding: 0; margin: var(--space-md) 0 0; font-family: var(--font-mono); font-size: var(--font-size-md); } .doc-quick-links a { display: inline-block; padding-block: 0.5rem; color: var(--accent); } .doc-quick-links a::before { content: "\\2192\\00a0"; } /* Feature List */ .feature-list { list-style: none; padding: 0; margin: 0; } .feature-list li { padding: var(--space-sm) 0; padding-left: var(--space-lg); border-bottom: 1px solid var(--border); font-size: var(--font-size-prose); color: var(--text-muted); position: relative; } .feature-list li:last-child { border-bottom: none; } .feature-list li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); } /* Settings Table */ .settings-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-md); } .settings-table th { font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: 2px solid var(--border); } .settings-table td { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--border); color: var(--text-muted); /* Setting descriptions name filters and constants - single unbreakable tokens that push the table, and the whole page, sideways on a phone. */ overflow-wrap: anywhere; } .settings-table code { font-family: var(--font-mono); font-size: var(--font-size-sm); background: var(--surface-elevated); padding: 1px 5px; color: var(--accent); } /* FAQ Items */ .faq-item { border-bottom: 1px solid var(--border); } .faq-item summary { font-family: var(--font-mono); font-size: var(--font-size-body); font-weight: 600; color: var(--text); padding: var(--space-md) 0; cursor: pointer; list-style: none; position: relative; padding-right: var(--space-xl); } .faq-item summary::-webkit-details-marker { display: none; } /* The accordions and the on-page nav are keyboard targets, so give them the site's own focus ring instead of leaving them on the browser default. */ .faq-item summary:focus-visible, .doc-nav a:focus-visible, .doc-shot-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .faq-item summary::after { content: "+"; position: absolute; right: 0; top: var(--space-md); font-family: var(--font-mono); font-size: var(--font-size-lg); color: var(--accent); transition: transform var(--transition-fast); } .faq-item\[open\] summary::after { content: "−"; } .faq-item p { padding: 0 0 var(--space-md); font-size: var(--font-size-prose); color: var(--text-muted); line-height: 1.7; /* Answers quote CLI commands and filesystem paths, which are single unbreakable tokens - without this they push the whole page sideways on a phone. */ overflow-wrap: anywhere; } /* Related Grid */ .related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } /* Video Section */ .video-section { margin-bottom: var(--space-2xl); } .video-facade { position: relative; aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; cursor: pointer; max-width: 900px; margin: var(--space-lg) auto; background: var(--black); } .video-facade img { width: 100%; height: 100%; object-fit: cover; } .video-facade__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,10,10,0.5); border: none; cursor: pointer; transition: background var(--transition-fast); } .video-facade:hover .video-facade__play { background: rgba(10,10,10,0.3); } .video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; } .video-more { text-align: center; margin-top: var(--space-md); } .video-more a { font-family: var(--font-mono); font-size: var(--font-size-sm); font-weight: 500; } /* CTA Section */ .cta-section { margin-top: var(--space-3xl); padding: var(--space-2xl); background: var(--surface); border: 1px solid var(--border); text-align: center; } .cta-section h2 { font-family: var(--font-mono); font-size: var(--font-size-2xl); color: var(--text); margin-bottom: var(--space-sm); } .cta-section h2::before { content: none; } .cta-section p { color: var(--text-muted); margin-bottom: var(--space-xl); margin-left: auto; margin-right: auto; } /* Responsive */ @media (max-width: 768px) { .doc-header { padding: var(--space-2xl) 0 var(--space-lg); } main { padding: var(--space-xl) 0 var(--space-2xl); } .module-grid { grid-template-columns: 1fr; } .related-grid { grid-template-columns: 1fr; } .doc-nav { gap: var(--space-sm); } .settings-table { font-size: var(--font-size-sm); } .settings-table th, .settings-table td { padding: var(--space-xs) var(--space-sm); } /* Phones: give step text the width back and read it at body size. */ .getting-started ol li, .steps-list li { padding-inline-start: 2.25rem; } .steps-list li p { font-size: var(--font-size-prose); line-height: 1.7; } .doc-nav a { padding-block: 0.75rem; } } /* 44px tap target for the page's one call to action. */ .cta-section .btn-primary { min-height: 44px; display: inline-flex; align-items: center; } /* Footer - organized column grid (Concept A) */ footer { background: var(--black); border-top: 1px solid var(--border); padding: var(--space-3xl) 0 var(--space-xl); font-size: var(--font-size-md); color: var(--text-muted); } .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-2xl) var(--space-xl); align-items: start; } /* Brand column */ .footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.03em; font-size: var(--font-size-lg); color: var(--text); text-decoration: none; margin-bottom: var(--space-md); } .footer-logo svg { flex-shrink: 0; } .footer-logo .logo-wordmark { display: block; height: 22px; width: auto; } .footer-brand p { font-weight: 500; color: var(--text-muted); font-size: 1rem; /* fixed: no size container outside , fluid would hit the 21px cap */ max-width: 34ch; line-height: 1.6; margin-bottom: var(--space-lg); } .footer-social { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); } .footer-social a { font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); transition: color var(--transition-med), border-color var(--transition-med), transform var(--transition-fast); } .footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); } .footer-social a:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; } .footer-brand .trustpilot-widget { max-width: 260px; } /* Link columns */ .footer-col h3 { font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border); } .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; padding: 0; margin: 0; } footer a { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } footer a:hover { color: var(--accent); } /* Long compound link labels (e.g. the de refund-policy word) must wrap or they overflow the page at 320px. */ .footer-col li { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; } .footer-col a { display: inline-block; font-weight: 500; } .footer-col a:focus-visible { color: var(--accent); outline: none; text-decoration: underline; text-underline-offset: 3px; } /* Badge marquee */ .badge-marquee { overflow: hidden; margin: var(--space-2xl) 0 var(--space-lg); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); } .badge-marquee-track { display: flex; gap: var(--space-xl); width: max-content; animation: marquee 40s linear infinite; } .badge-marquee:hover .badge-marquee-track { animation-play-state: paused; } .badge-marquee-track a { display: flex; align-items: center; flex-shrink: 0; opacity: 0.6; transition: opacity var(--transition-med); } .badge-marquee-track a:hover { opacity: 1; } .badge-marquee-track img { display: block; height: 34px; width: auto; } /* For directories that only publish black-on-transparent artwork, which would otherwise be invisible against this footer. Opt-in per badge - never blanket, because inverting a badge that already reads correctly wrecks its colours. */ .badge-marquee-track img.badge--invert { filter: invert(1); } /* A badge that ships with a companion text link under it (Launch Llama). */ .badge-marquee-track .badge-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; } /* Text, unlike the badge images, must stay readable: full opacity (the 0.6 above composited #888 down to #565656, 2.69:1) and a 24px tap target. */ .badge-marquee-track a.badge-companion { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; opacity: 1; font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 500; line-height: 1; color: var(--text-dim); text-decoration: none; } .badge-marquee-track a.badge-companion:hover, .badge-marquee-track a.badge-companion:focus-visible { color: var(--accent); } @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } /* Bottom bar */ .footer-bottom p, .footer-bottom span { font-weight: 500; } .footer-bottom { font-weight: 500; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); border-top: 1px solid var(--border); padding-top: var(--space-lg); margin-top: var(--space-md); } footer p { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-muted); letter-spacing: 0.02em; margin: 0; } /* The built-by row groups the outbound author links so space-between on .footer-bottom keeps them adjacent instead of spreading them apart. */ .footer-built-by { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); } .built-by-badge { font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-dim); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } .built-by-badge:hover { color: var(--accent); } .built-by-badge svg { opacity: 0.7; transition: opacity var(--transition-med); } .built-by-badge:hover svg { opacity: 1; } @media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } } @media (max-width: 560px) { .footer-bottom { flex-direction: column; align-items: flex-start; } } .btn-primary { display: inline-block; background: var(--accent); color: var(--black); padding: var(--space-sm) var(--space-xl); font-family: var(--font-mono); font-size: var(--font-size-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(200, 255, 0, 0.3); } .doc-breadcrumb { margin-bottom: var(--space-sm, 0.75rem); font-size: var(--font-size-md); } .doc-breadcrumb a { color: var(--text-muted, #888); text-decoration: none; } .doc-breadcrumb a:hover { color: var(--accent, #c8ff00); } Skip to main content CONTROL PRO Debug Log Guard Stream, group, and safely compact wp-content/debug.log - with an hourly size guard so a runaway log never fills your disk. What It Does A forgotten debug.log can grow to gigabytes and take a site down when the disk fills. Debug Log Guard resolves the active log target (WP_DEBUG_LOG, a custom path, or php.ini's error_log), streams it without ever loading the whole file into memory, and groups repeated errors into a deduplicated summary so you can see the actual culprits. One-click actions - compact, rotate, or clear - always create a backup first, and an hourly size-guard cron watches the file and acts automatically when it crosses your threshold. The module reads and post-processes the log; it never changes how PHP writes errors. Features Resolves the actual log target the way WordPress does: WP_DEBUG_LOG only counts when WP_DEBUG is on, custom log paths are honored, and php.ini's error_log is the fallback - instead of assuming wp-content/debug.log Grouped, deduplicated error summary: identical errors (differing only by timestamp) collapse into one row with count, source attribution (which plugin, theme, or core file), and first/last seen timestamps Optional aggressive grouping that masks volatile tokens (hex addresses, line numbers, numeric IDs) so near-identical errors also group together Live tail of the last 200 log lines, loaded on demand Streaming reads with a scan cap (default 100MB) - even multi-gigabyte logs never exhaust PHP memory Compact: collapses repeated lines in place, annotating each with its repeat count and time range - backup first, atomic temp-file + rename, and any lines appended during the run are preserved Compact refuses to run when free disk space is insufficient, when there are too many distinct lines, or when it would exceed a 20-second time budget - the original file is always left untouched on abort Rotate: rename-only operation (safe for giant files) that archives the log and starts a fresh empty one Clear: empties the log after saving a backup Download the full log as a file, streamed in chunks Hourly size-guard cron: stats the file (an O(1) check), and when it crosses your threshold runs your chosen action automatically; files past the hard ceiling (default 1GB) are force-rotated instead of compacted Configurable backup retention (how many .bak / rotated files to keep) Warns when debug logging is on in production - including whether the log sits inside wp-content where it may be reachable over HTTP - and links to Config Manager to turn it off Detects unmanageable targets (syslog, /dev/stderr) and disables file actions instead of failing confusingly How to Use **Open Debug Log Guard** Go to WP Multitool > Debug Log Guard. The status card shows the resolved log path, its current size, and whether WP_DEBUG is on. If debug logging is enabled in production, a warning explains why that matters. **Review the repeated errors** The summary table groups identical errors with counts and source attribution. A single deprecation notice firing 400,000 times from one plugin is the usual reason a log balloons. **Fix the source, then act on the file** Click "Compact now" to collapse the repeats in place (a backup is saved first), or "Rotate" for very large files. "Clear" empties the log after backing it up. You can download the log before acting. **Configure the size guard** Set your threshold (default 50MB) and the automatic action (compact, rotate, or clear). The hourly cron then watches the file for you - it only ever stats the file until the threshold is crossed. **Turn debug logging off in production** The size guard is damage control. If you are not actively debugging, follow the link to Config Manager and turn WP_DEBUG_LOG off. Settings SettingDefaultDescription Enable hourly size guard `On` Hourly WP-Cron check of the log size. Only ever stats the file until the threshold is exceeded. Threshold (MB) `50` When the log exceeds this size, the size guard runs the configured action automatically. Guard action `Compact` What the size guard does when triggered: compact, rotate, or clear. Files over the hard ceiling (1GB) are always rotated instead of compacted. Keep backups `1` How many backup/rotated copies of the log to retain. Aggressive grouping `Off` Masks numeric IDs, line numbers, and hex addresses when grouping, so near-identical errors collapse into one row. FAQ Does this change how PHP or WordPress writes errors? No. Debug Log Guard is strictly read-and-post-process: it never hooks into PHP's error write path, installs no drop-in, and does not filter what gets logged. It manages the file after the fact. Can compacting lose log entries? The information is preserved in condensed form: each repeated line becomes a single line annotated with its repeat count and first/last timestamps. A full backup is saved before any write, the rewrite is atomic (temp file + rename), and lines appended while the compaction runs are carried over verbatim. If anything cannot be done safely - low disk, too large, too many distinct lines - the operation aborts with the original untouched. My log is already several gigabytes. What should I do? Use Rotate, not Compact. Rotation is a rename-only operation that needs no extra disk or memory and completes instantly, archiving the giant file and starting a fresh log. The automatic size guard never compacts a file past the hard ceiling (default 1GB) - it rotates instead. Why does it say the log target "cannot be managed"? Your error log goes to syslog or a stream like /dev/stderr (common in containers) rather than a regular file. There is no file to compact or rotate, so the file actions are disabled. The summary and tail also require a regular file. Why the warning about debug logging in production? Two reasons. Every logged notice costs disk writes on every request, and the default wp-content/debug.log location may be reachable over HTTP, leaking file paths and internals to anyone who guesses the URL. Unless you are actively debugging, WP_DEBUG_LOG should be off in production - Config Manager can toggle it. Related Modules [PRO Config Manager Edit wp-config.php constants through a visual interface, with a backup before every change and one-click restore - including a rescue command that works when the site will not load.](https://wpmultitool.com/docs/config-manager/) [LITE Site Doctor One button that scans the whole site - configuration, 21 Redis object-cache checks, a page-cache probe, database bloat and Action Scheduler junk in every install, plus autoload burden and captured slow queries where the Pro modules that produce them are installed - and ranks every finding worst-first, each linked to the module that fixes it.](https://wpmultitool.com/docs/site-doctor/) [LITE Database Optimizer Clean up post revisions, expired transients, orphaned metadata, stale cron events, and Action Scheduler logs - with a SQL backup of the deleted rows written first, or nothing is deleted.](https://wpmultitool.com/docs/database-optimizer/) Ready to optimize your WordPress site? Join developers using WP Multitool to debug, optimize, and maintain WordPress. [Get WP Multitool](https://wpmultitool.com/pricing/)