Jump to content

Replacing text with images on mobile burger navigation menu

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 7
  • Views 373
  • Created
  • Last Reply

Top Posters In This Topic

Use this code for mobile

[data-folder="root"]>div>div:nth-child(1) a {
    background-image: url(https://static1.squarespace.com/static/62ca90b4357da95817cf4a70/t/62d1253b9ad3ff22ceb82286/1657873723478/arbeiten.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: transparent !important;
}

[data-folder="root"]>div>div:nth-child(2) a {
    background-image: url(https://static1.squarespace.com/static/62ca90b4357da95817cf4a70/t/62cfcc20b0042e2b435fb69f/1657785376772/CV.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: transparent !important;
}

 

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
6 hours ago, tuanphan said:

Use this code for mobile

[data-folder="root"]>div>div:nth-child(1) a {
    background-image: url(https://static1.squarespace.com/static/62ca90b4357da95817cf4a70/t/62d1253b9ad3ff22ceb82286/1657873723478/arbeiten.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: transparent !important;
}

[data-folder="root"]>div>div:nth-child(2) a {
    background-image: url(https://static1.squarespace.com/static/62ca90b4357da95817cf4a70/t/62cfcc20b0042e2b435fb69f/1657785376772/CV.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: transparent !important;
}

 

Thank you!!

Link to comment
6 hours ago, tuanphan said:

Use this code for mobile

[data-folder="root"]>div>div:nth-child(1) a {
    background-image: url(https://static1.squarespace.com/static/62ca90b4357da95817cf4a70/t/62d1253b9ad3ff22ceb82286/1657873723478/arbeiten.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: transparent !important;
}

[data-folder="root"]>div>div:nth-child(2) a {
    background-image: url(https://static1.squarespace.com/static/62ca90b4357da95817cf4a70/t/62cfcc20b0042e2b435fb69f/1657785376772/CV.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: transparent !important;
}

 

Ah, I just noticed one of the images also replaced the instagram symbol - is there a way to change that?

Link to comment
  • Solution
17 hours ago, arualaura said:

Ah, I just noticed one of the images also replaced the instagram symbol - is there a way to change that?

Edit this

[data-folder="root"]>div>div:nth-child(1) a

to this

[data-folder="root"]>div>div:nth-child(1) a[href="/arbeiten"]

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.