Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Inspect Element is a developer tool built into your browser, not a WordPress editor. Use it to select a rendered page element, read the HTML (DOM) and CSS affecting it, test a temporary change, and collect Console errors when interactive features fail. The experiment exists only in your current browser view; make any lasting fix through your theme, plugin, block, customizer, or development workflow.

What Inspect Element can—and cannot—do

When you open a public page or preview and choose Inspect, the browser exposes the page it has rendered. You can identify an element’s HTML node, classes, dimensions, matching CSS declarations, accessibility details, and (in some browsers) its current state such as :hover. You can edit those values locally to test a theory.

Those edits are not saved to WordPress. Reloading the page normally removes them. Once a test confirms the cause, apply the change in the appropriate site location: a block or widget setting, the Customizer or Site Editor, a child-theme stylesheet, a plugin’s supported CSS/JavaScript field, or your development code. The correct location depends on how the site is built.

Open the inspector in your browser

Browser Context-menu route Selector shortcut or menu note
Chrome Right-click the element and choose Inspect. Press Ctrl+Shift+C on Windows, Linux, or ChromeOS, or Cmd+Option+C on macOS, to activate the element picker. You can also open Developer Tools from the browser menu.
Firefox Right-click the element and choose Inspect Element, or open Web Developer Tools and select Inspector. Panel placement options and labels can vary by Firefox version.
Safari Use Safari’s Web Inspector after enabling the Develop menu in Settings > Advanced when required. Safari labels and locations vary by version; use its menus if a shortcut is unavailable.

Open the exact page where the problem appears, including a logged-in preview when relevant. Browser developer tools describe the rendered page, so a different page, viewport, account, or cache state can produce different results.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read the selected HTML and CSS

1. Find the DOM node

In Chrome’s Elements panel or Firefox’s Inspector, the highlighted node corresponds to the element you selected. Read its tag (such as button, nav, or div), classes, IDs, attributes, and its parent and child nodes. WordPress block markup often includes several wrapper elements, so select the node that actually controls the visible area rather than assuming the outermost wrapper is responsible.

2. Use Styles to trace matching rules

The Styles view lists declarations that match the selected node. A rule may come from the theme, a plugin, WordPress core, or an inline style. Follow a rule’s source link when you need to locate the stylesheet that supplied it.

A crossed-out declaration is overridden and is not the value controlling the page. Specificity, source order, inline styles, and state selectors such as :hover can all affect which declaration wins.

3. Use Computed for the value actually applied

Computed shows the resolved value the browser uses after the cascade. If a margin, font size, color, width, or display rule looks confusing in Styles, check Computed first, then expand that property to trace the winning declaration and its stylesheet.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. Use the picker’s extra clues

Depending on the browser and selected element, the picker tooltip can show dimensions, colors, font information, padding, margin, accessibility name and role, keyboard focusability, and a contrast ratio for headings. Treat these as diagnostic clues rather than a substitute for testing the page with keyboard and assistive technology.

Test a visual fix without changing WordPress

  1. Activate the element picker and select the element whose appearance is wrong.
  2. In Styles, locate the declaration that appears related to the problem, such as display, visibility, position, color, margin, or z-index.
  3. Toggle the declaration’s checkbox or edit its value. You can also add a temporary declaration to test a property.
  4. For state-specific problems, force a pseudo-state such as :hover from the inspector and test the corresponding rule.
  5. Observe whether the page changes as expected, then note the selector, property, value, and stylesheet source.
  6. Reapply the confirmed change through your WordPress or site-development workflow, save it there, clear any relevant cache, and reload to verify the durable result.

For example, if toggling display: none makes a menu item appear, that establishes a CSS explanation for the hidden item. It does not identify whether the lasting fix belongs in a theme stylesheet, a plugin stylesheet, or a block setting; trace the source and inspect the site’s implementation before editing.

Choose the right panel for the problem

Symptom Start here What to capture
Wrong spacing, color, size, alignment, or visibility Elements/Inspector, then Styles and Computed Selected node, winning declaration, selector, and stylesheet source
Menu, button, modal, metabox, or other interaction does nothing Console, with a page reload if needed Full error text, stack trace, filename and line, action that triggered it, browser, and affected page
Problem appears only in one state Elements/Inspector with the relevant pseudo-state forced State selector and declarations that change between states

An error in Console is evidence that something failed, but it does not by itself prove that a particular plugin or theme is responsible. Correlate the error with the action, file, line, and page context.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Diagnose broken WordPress JavaScript

  1. Open the affected page and the browser’s Console panel. Reload the page because some errors occur during initial load.
  2. Reproduce the failure and expand the error to reveal its complete stack trace. Record the filename and line number rather than copying only the first sentence.
  3. Repeat the action in a second browser. If the problem disappears, test with extensions disabled or in a private window to check for extension interference.
  4. If appropriate for your troubleshooting process, enable WordPress’s SCRIPT_DEBUG setting to load unminified WordPress scripts. If behavior changes, turn the setting off again and include that fact in your support report.
  5. Send support the affected page link when possible, browsers tested, the complete error and stack trace, filename and line, triggering action, and whether SCRIPT_DEBUG changed the behavior.

Do not paste secrets, authentication tokens, or private data from Console output into a public support forum. Redact them while preserving the error structure and relevant file and line information.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Common inspection mistakes

  • Expecting a saved change: DevTools edits are browser-side previews. They disappear on reload or for other visitors.
  • Editing the wrong wrapper: WordPress markup can nest several containers. Select the element whose box or behavior is actually affected.
  • Trusting a crossed-out rule: Use Computed and expand the property to find the declaration that wins.
  • Looking only at CSS for a behavior bug: A visible button can still fail because JavaScript throws an error; check Console.
  • Assuming every error names the culprit: Correlate the stack trace with the action and test across browsers and extensions.
  • Assuming identical browser labels: Use the context menu or browser menus when a shortcut or panel name differs.

A practical handoff from inspection to a permanent fix

  1. Describe the symptom precisely: what is wrong, on which URL, at what viewport, and for which user state.
  2. Identify the DOM node and winning CSS declaration, or capture the Console error and stack trace.
  3. Test one change at a time so the result has a clear cause.
  4. Locate the durable owner of the code or setting—block, Site Editor, Customizer, child theme, plugin, or custom build.
  5. Make the change in that owner, not only in DevTools.
  6. Reload and verify the original scenario, then check a second browser and the relevant responsive width or interaction state.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.