Jump to content

Header: delete name of the languages but keep flags

Recommended Posts

  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

On 11/26/2023 at 10:22 AM, madeproduction said:

Yes thnx but on phone it's still words and no flags

Use this code for mobile

div.container.header-menu-nav-item>a {
    background-size: 16px;
    background-repeat: no-repeat;
    color: transparent;
    background-position: center;
}
div.container.header-menu-nav-item:nth-last-child(-n+3) * {
    color: transparent !important;
}
div.container.header-menu-nav-item:nth-last-child(3)>a {
    background-image: url(https://cdn.countryflags.com/thumbs/czech-republic/flag-round-250.png);
}

div.container.header-menu-nav-item:nth-last-child(2)>a {
    background-image: url(https://cdn.countryflags.com/thumbs/germany/flag-round-250.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!)

Link to comment
17 hours ago, tuanphan said:

Use this code for mobile

div.container.header-menu-nav-item>a {
    background-size: 16px;
    background-repeat: no-repeat;
    color: transparent;
    background-position: center;
}
div.container.header-menu-nav-item:nth-last-child(-n+3) * {
    color: transparent !important;
}
div.container.header-menu-nav-item:nth-last-child(3)>a {
    background-image: url(https://cdn.countryflags.com/thumbs/czech-republic/flag-round-250.png);
}

div.container.header-menu-nav-item:nth-last-child(2)>a {
    background-image: url(https://cdn.countryflags.com/thumbs/germany/flag-round-250.png);
}

 

Thnx my hero!

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.