CODE & CLONING

How to edit text on any website

To edit text on a website, choose Edit text in the Sitepeel Chrome extension and click the words, or right-click them, choose Inspect and double-click the text in the Elements panel. To make the whole page editable, type document.designMode = 'on' in the Console. The change is only on your screen and goes away when you reload.

“Change the words on any page.” A web page’s Old headline becomes New headline in an outlined, editable box, with a tag that says Reload brings it back.
Edits are only on your screen, until you reload.

In short

  • Three ways: Sitepeel’s Edit text tool, the Elements panel, or document.designMode
  • The change is only in your browser: nobody else sees it
  • A reload brings the original text back
  • To change your own site for everyone, edit it in its CMS or code
On this page9
  1. Step by step
  2. Three ways to edit text on a page
  3. Use Inspect Element to change text
  4. Make the whole page editable
  5. Edit text with Sitepeel
  6. Find and replace text on a page
  7. Why an edit doesn’t stick
  8. Change the text on your own website
  9. Questions

Step by step

  1. Right-click the text

    Right-click the words you want to change and choose Inspect. Safari calls it Inspect Element.

  2. Double-click it in Elements

    The element is highlighted in the panel. Double-click the text between its tags.

  3. Type the new words

    Type your text and press Enter. The page updates at once.

  4. Keep a copy

    Copy the new wording or take a screenshot. A reload brings the original back.

Three ways to edit text on a page

Ways to change the text on a page you have open
WayHowGood for
Sitepeel’s Edit text toolChoose Edit text, click any text and typeTrying new copy in the real layout, with undo
The Elements panelRight-click > Inspect, double-click the text, press EnterOne exact change, with nothing to install
document.designModeOne line in the Console makes the whole page editableMany edits in a row
Edit as HTMLRight-click the element in the Elements panel > Edit as HTMLChanging words and tags together
Website text editor in the Sitepeel interface
Website text editor in actionExplore the tool

Use Inspect Element to change text

  • Right-click the text and choose Inspect.
  • In the Elements panel, double-click the text between the tags.
  • Type the new text and press Enter.
  • For a bigger change, right-click the element, choose Edit as HTML, then press Ctrl+Enter (Cmd+Enter on a Mac).
  • Press Ctrl+Z (Cmd+Z) in the panel to undo.

Make the whole page editable

Open the Console (Ctrl+Shift+J in Chrome, or Cmd+Option+J on a Mac), type this line and press Enter. Then click anywhere on the page and type, as in a document.

  • Set it to off to stop editing. Your changes stay until you reload.
  • Chrome warns you before your first paste into the Console. The line is short: type it by hand.
console.jsJavaScript
document.designMode = 'on'

Edit text with Sitepeel

In the Sitepeel Chrome extension, choose Edit text and click any words on the page. Type the new copy in place and press Esc when you are done. Ctrl+Z (Cmd+Z) undoes an edit.

It is made for trying a headline or a button label in the real layout. Like the other ways, it changes only your tab, and a reload brings the original back.

Find and replace text on a page

Ctrl+F (Cmd+F) finds text on a page but can’t replace it. To swap a word everywhere on the page you have open, run this in the Console, with your own words in place of old and new.

replace-text.jsJavaScript
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
while (walker.nextNode()) {
  walker.currentNode.nodeValue = walker.currentNode.nodeValue.replaceAll('old', 'new');
}

Why an edit doesn’t stick

What happens to an edit, and why
What happensWhy
The old text is back after a reloadThe browser fetched the page again. Your edit was never sent to the site
The text snaps back by itselfThe page’s scripts drew that part again and replaced your edit
You can’t click into the textIt is part of an image, a video or a canvas, not text
Other people still see the old textOnly the site’s owner can change what the server sends

Change the text on your own website

  • Built with WordPress, Wix, Squarespace or Shopify: sign in and change the page in its editor.
  • Written in code: change the text in the source files and publish again.
  • Not sure what it runs on? Sitepeel’s free tech stack checker names the CMS or site builder.
  • Try the new wording in the live layout first, then make the real change.

Questions

How do I use Inspect Element to change text?

Right-click the text and choose Inspect. In the Elements panel, double-click the text between the tags, type the new words and press Enter. The page updates at once, only in your browser, until you reload.

Why can’t I edit a text on a page?

It may be inside an image, a video or a canvas, which hold no text to edit. Or the page’s scripts draw it again right after you type. Ordinary headings, paragraphs, links and buttons can be changed.

How do I edit an already existing website?

If it is yours, sign in to its CMS or site builder, or change the source files and publish. If it isn’t, you can only change your own view of it in your browser.

How do I change the text font on a website?

In DevTools, select the text and change font-family in the Styles pane. Sitepeel’s Swap fonts tool tries 2,100+ fonts on a page. Both are previews in your browser. On your own site, change the font in its theme or CSS.

Can other people see the text I changed?

No. The edit lives in your browser’s copy of the page. The website, and what everyone else sees, stays the same.

TAKE A CLOSER LOOK

Your next starting point is already on the web.

Inspect it. Understand it. Build something of your own.

Add to ChromeFree installTry the free tools