Skip to content

AI Marketing

How to Use Claude Code on an Existing Website

How to use Claude Code on an existing website, illustrated by desktop and mobile previews of a local page

To use Claude Code on an existing website, open a local copy of the project in Claude Desktop or start Claude Code in the project’s folder. Begin in Plan mode, choose one small change, review the code diff and test the result on a local preview or staging site before publishing.

If you only need help writing the text on a page, use Claude chat to draft and review website copy. Claude Code is useful when the task involves files, such as finding a theme stylesheet, adjusting a layout or running a project’s checks.

How do I open my website project in Claude Code?

  1. Get a local copy. Use a copy of the website’s repository your team can run locally. If it uses Git, start with a clean working tree and a branch for the change. Use a local configuration and sample data.
  2. Choose Desktop or terminal. In Claude Desktop, open the Code tab, choose a local environment, select Open folder and pick the project. If you prefer the terminal, install Claude Code using Anthropic’s official quickstart, which lists the commands for your operating system.
  3. Start in the right folder. In the terminal, use claude --version to check installation. Open your project folder, start Claude Code and follow the sign-in prompt if it appears.

For the Desktop workflow, use Anthropic’s instructions for opening a local folder. Claude Code access depends on your plan and any workspace controls. Check the current setup requirements.

What should I ask Claude Code to do first?

Start with a problem you can reproduce easily. For example, say the enquiry button in the header wraps at a 375-pixel viewport. Open Plan mode before asking for an explanation. From the project folder in the terminal, you can start there with:

claude --permission-mode plan

Choose Plan from the permission control if you are using the desktop interface. Plan mode lets Claude inspect the project and propose an approach for you to review. Anthropic’s Plan mode instructions.

Inspect this local project and locate the styles for the primary header button. Explain what makes the button wrap at 375 pixels. Tell me which files you would touch, propose the smallest change and give me a way to test it. Wait for my approval before editing any files.

When you approve the work, give it a boundary. For this example, ask it to fix the button while preserving the link destination, desktop layout and keyboard focus. If the plan proposes a dependency install or a change to the navigation script, ask why it is needed before approving it.

Claude Code Plan mode illustrated by a paper mockup marking one change to a mobile website header
Plan one specific change to the mobile header and agree how to test it before approving edits.

How do I test changes before putting them on the live site?

  1. Read the diff. Use the change review panel or git diff to check that the edits match the plan.
  2. Reproduce the original issue. In your local browser, open developer tools and set the viewport to 375 pixels. Check the button, text, focus and click target. Repeat at desktop width to catch unintended changes.
  3. Test the visitor’s next step. Open the menu on mobile and confirm the enquiry button still reaches the right page or form. Use a test submission only where your staging setup supports it.
  4. Use the normal release process. Run the checks your project documents, then have the responsible person review and deploy the change.
Claude Code website testing illustrated by narrow and wide previews of the same enquiry button
Compare narrow and wide previews, then confirm that the enquiry button still leads to the right page.

Can I use Claude Code with a WordPress website?

Yes. Work on a local or staging copy and focus on code the site owns, such as a custom theme or plugin. A text change managed in WordPress usually belongs in the page editor. Keep live publishing and database changes in your usual WordPress workflow. If you need help deciding which layer to edit, see ZYV’s website development services.

Can I use Claude Code in a browser instead?

Claude Code on the web can work with a connected GitHub repository from a remote session on eligible plans. Start with the repository you intend to change, then review its changes in a branch or pull request before merging. Anthropic’s Claude Code web quickstart.

Zyvo

ZYV Digital’s project assistant

Hi, I’m Zyvo. Tell me what you need help with and someone from ZYV Digital will call you back.

Zyvo Callback Requests

We’ll use your details to respond to this request.