Jump to content

Changing Home Link to an Image on the Navigation Bar

Recommended Posts

Posted

Site URL: https://www.charleswarren.com.au/

Hello, I've seen previous posts asking the same thing, but the codes don't work when I try it on our site. May I ask for some help with what CSS I should use to fix this? Thanks.

  • Replies 2
  • Views 405
  • Created
  • Last Reply
Posted
On 3/26/2021 at 10:17 AM, JohannD said:

Site URL: https://www.charleswarren.com.au/

Hello, I've seen previous posts asking the same thing, but the codes don't work when I try it on our site. May I ask for some help with what CSS I should use to fix this? Thanks.

Hi. Add to Design > Custom CSS

/* home link to icon */
a.Header-nav-item[href="/"] {
    background-image: url(https://cdn.pixabay.com/photo/2021/03/22/13/48/anemone-6114655__340.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    color: transparent !important;
}

image.thumb.png.637f0eccf1b8cf4e492b86c537474640.png

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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.