Jump to content

Change hover text of links on main navigation

Recommended Posts

Hi! I'm trying to change the text of my links when you hover over them; for example:

Link reads "hohm" and when the cursor moves over it, it changes to "home"

Link reads "uh-bout" and when the cursor moves over it, it changes to "about"

I've seen custom CSS for changing link color but not actual text.

Link to comment
  • Replies 4
  • Views 559
  • Created
  • Last Reply

Top Posters In This Topic

On 10/12/2021 at 5:40 AM, Wynter711 said:

Hi! I'm trying to change the text of my links when you hover over them; for example:

Link reads "hohm" and when the cursor moves over it, it changes to "home"

Link reads "uh-bout" and when the cursor moves over it, it changes to "about"

I've seen custom CSS for changing link color but not actual text.

Can you share your site with protected password to check the issue?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 10/13/2021 at 7:43 PM, Wynter711 said:

This is a portfolio project I'm working on for a University class - since other students and our professor need to access it I'm not allowed to password protect it. The links I'm trying to modify are in the header.

https://www.wyntercannatelli.com/

Try adding this to Design > Custom CSS for first item

div.header-nav-item:nth-child(1) a {
    position: relative;
}
div.header-nav-item:nth-child(1) a:before {
    content: "home";
     font-size: calc((1.2 - 1) * 1.2vw + 1rem);
    position: absolute;
    opacity: 0;
}
div.header-nav-item:nth-child(1) a:hover:before {
    opacity:1 !important;
    visibility: visible;
}
div.header-nav-item:nth-child(1) a:hover {
    visibility:hidden;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.