Jump to content

How to attach selected language to the menu

Recommended Posts

  • 2 weeks later...
  • 1 month later...

Add to Design > Custom CSS

/* SV */
html[lang="sv"] a.header-nav-folder-title {
    font-size: 0;
}
html[lang="sv"] a.header-nav-folder-title:before {
    content: "Svenska";
    font-size: 14px;
}
/* No */
html[lang="no"] a.header-nav-folder-title {
    font-size: 0;
}
html[lang="no"] a.header-nav-folder-title:before {
    content: "Norwegian";
    font-size: 14px;
}
/* English */
html[lang="en"] a.header-nav-folder-title {
    font-size: 0;
}
html[lang="en"] a.header-nav-folder-title:before {
    content: "English";
    font-size: 14px;
}
/* Dansk */
html[lang="da"] a.header-nav-folder-title {
    font-size: 0;
}
html[lang="da"] a.header-nav-folder-title:before {
    content: "Dansk";
    font-size: 14px;
}

 

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.