Highlight the current page in the nav: Free AI Prompt | SheCodes

Free AI prompt · Start Here

Highlight the current page in the nav

A ready-to-use prompt from the chapter Multiple Page Websites. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“In my navigation bar, highlight the link for the page the user is currently on. Use a slightly different color or an underline so it's obvious which page they're viewing.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Add one new page

“Add a new /about page to my site. Include a hero section that says "About [your name]", a short bio paragraph, and three sections about my background, skills, and projects. Match the design and styling of my homepage.”

Add multiple pages

“Add three new pages to my site: /about, /pricing, and /contact. Each one should match my homepage's design (same colors, fonts, header, footer). Create realistic placeholder content for each page so I can see what it looks like before I write the real copy.”

Add a nav bar

“Add a navigation bar to the top of every page on my site. It should include my logo on the left and links to Home, About, Pricing, and Contact on the right. Make it sticky so it stays visible as I scroll. On mobile, collapse it into a hamburger menu.”

Add breadcrumbs

“Add breadcrumbs to every page (except the homepage). They should show the path from home to the current page. For example: Home › Blog › My First Post. Use the Next.js Link component so they navigate instantly.”

Personal homepage

“Build me a personal homepage. Include my name at the top in large bold text, a short bio paragraph, a professional photo placeholder, and links to my X, LinkedIn, and GitHub. Use a clean, minimal design with lots of whitespace. Make it look modern and work on mobile.”