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

Inspect Element is a browser tool for examining and temporarily testing the HTML, CSS, and JavaScript of a rendered WordPress page. It helps you identify the element that looks wrong, see which style rule controls it, preview a CSS adjustment, and collect useful error details when a menu, button, or other interactive feature fails. Changes made in DevTools are temporary browser experiments; they do not save a theme, plugin, or WordPress setting.

Open Inspect Element on the page where the problem appears

Use a desktop browser and open the public page or preview that shows the issue. Inspect the rendered result rather than assuming the editor view uses the same markup and styles.

Chrome

  1. Right-click the visible element and choose Inspect.
  2. Alternatively, activate the element picker with Ctrl+Shift+C on Windows, Linux, or ChromeOS, or Cmd+Option+C on macOS, then select the element.

Firefox

  1. Right-click the element and choose Inspect Element.
  2. You can also open Web Developer Tools and select the Inspector. Firefox lets you choose how the developer-tool panels are placed.

Browser labels and shortcuts can change. If a shortcut does not work, use the right-click menu or the browser’s developer-tools menu. Safari may require enabling the Develop menu in Settings > Advanced; the exact labels vary by Safari version.

Browser Element-inspection entry Most useful panel for a beginner
Chrome Right-click > Inspect, or the element picker shortcut Elements, then Styles or Computed
Firefox Right-click > Inspect Element, or Web Developer Tools > Inspector Inspector and its rule/computed-style views
Safari Enable Develop if necessary, then open its Web Inspector Inspector for markup and styles; Console for script errors

Understand what the Elements or Inspector panel shows

Find the selected DOM node

After you select an element, the developer tools highlight its corresponding node in the page’s DOM (Document Object Model). Read the tag, attributes, and class names. A WordPress button, for example, may be represented by a <button> or link element with several classes added by a theme or plugin.

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

The picker tooltip can expose practical clues such as dimensions, colors, font details, padding, margin, an accessibility name or role, keyboard focusability, and, for headings, a contrast ratio.

Use Styles to trace matching CSS

In Chrome, the Styles view lists declarations from rules that match the selected node. Follow a rule’s source link when you need to locate the stylesheet that supplied it. A declaration shown with a strikethrough is overridden and is not the value controlling the page.

Use Computed for the value actually applied

Computed shows the resolved value after the cascade, inheritance, and overrides are taken into account. If a rule appears in Styles but the element still looks different, locate that property in Computed first, then trace the winning declaration back to its selector and stylesheet.

Preview a CSS fix without changing WordPress

  1. Select the element in Elements or Inspector.
  2. In Styles, toggle an existing declaration or add a temporary declaration, such as a different margin, color, or display value.
  3. Use the panel’s class controls when you need to test a class combination.
  4. Apply a pseudo-state such as :hover when the issue appears only while pointing at an element.
  5. Observe the page and use Computed to confirm which value wins.

This experiment changes only the copy of the page loaded in your browser. Reloading normally removes it, and it does not write to WordPress. If the test identifies the correct selector and property, make the durable change through the site’s appropriate workflow: the block or site editor, the Customizer where available, a child-theme stylesheet, a managed custom-CSS area, or the relevant plugin/development files. The correct location depends on the site’s theme, plugins, hosting, and editing setup. After saving through that workflow, reload the page and verify it again.

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

Choose the right panel for the symptom

Appearance, spacing, or layout problem: Elements and Styles

  • Select the smallest element that visibly exhibits the problem.
  • Check its class names and the matching selectors.
  • Look for crossed-out declarations, inherited values, and media-query rules.
  • Confirm the effective value in Computed before changing anything permanently.

Menu, button, tab, or other behavior problem: Console

A visual inspection cannot explain every interaction failure. Open Console and reload the page if necessary, because some JavaScript errors occur during page load. Reproduce the action and capture the complete error and stack trace, including the file name and line number.

An error is evidence, not proof that a particular plugin or theme is responsible. The same script can be affected by another plugin, the browser, an extension, or a conflict elsewhere on the page.

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

WordPress-specific JavaScript troubleshooting

  1. Try the same action in another browser. If the problem disappears, compare browser versions and settings.
  2. Test with extensions disabled or in a private window to check whether an extension is interfering.
  3. Open Developer Tools, select Console, reload, and reproduce the failure.
  4. Record the browser or browsers affected, the page URL, the exact action that triggers the problem, and the full error and stack trace with its file and line.
  5. If appropriate for the site owner or developer, enable WordPress’s SCRIPT_DEBUG setting to load unminified WordPress scripts and test again. If behavior changes, turn SCRIPT_DEBUG off afterward and report that fact.

Do not edit production files or configuration merely to experiment if you do not control the site. Give the collected details to the person responsible for the theme, plugin, or hosting environment.

What Inspect Element can—and cannot—tell you

  • It can: reveal the rendered DOM, matching and overridden CSS declarations, resolved computed values, temporary visual changes, pseudo-states, and browser console errors.
  • It cannot: save a WordPress change, prove which plugin caused an error by itself, show server-side PHP execution, or guarantee that a browser-side workaround will survive a theme or plugin update.

A repeatable inspection checklist

  1. Open the exact page or preview where the issue occurs.
  2. Inspect the visible element and identify its DOM node and classes.
  3. For styling, check Styles and then Computed; follow the winning rule’s stylesheet link.
  4. Test one temporary declaration or state at a time.
  5. For broken interaction, inspect Console after a reload and reproduce the action.
  6. Compare another browser and an extension-free/private session when relevant.
  7. Apply any confirmed fix through the proper WordPress or development workflow, then reload and verify.

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.

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