Jump to content

Multilingual site: Need to change from flags to abbreviations

Recommended Posts

  • Replies 2
  • Views 200
  • Created
  • Last Reply

Top Posters In This Topic

In Code Injection, edit this code

<script>
/*setup language switcher with flags*/
$('body').prepend('<div class="language"><a href="/en/home" class="lang-en"><span class="flag-icon flag-icon-gb"></span></a>  <a href="/no/home/" class="lang-no"><span class="flag-icon flag-icon-no"></span></a>  <a href="/fr/home/" class="lang-fr"><span class="flag-icon flag-icon-ca"></span></a></div>');
</script>

to this code

<script>
/*setup language switcher with flags*/
$('body').prepend('<div class="language"><a href="/en/home" class="lang-en"><span>EN</span></a>  <a href="/no/home/" class="lang-no"><span>NO</span></a>  <a href="/fr/home/" class="lang-fr"><span>FR</span></a></div>');
</script>

 

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.