Jump to content

Select a specific item from a Dropdown Menu (to exclude it from a general instruction)

Recommended Posts

Posted

Site URL: https://www.azorindelrio.com/ca/inici

Hello,

I'm trying to make a multilingual website without using weglot.

I'm following the steps from here: https://www.bradgood.net/articles/multi-language-content-on-any-squarespace-template

Everything seems to work correctly. But there is a part on the code where i have to exclude some items from the dropdown menu. Those elements that i don't want it to disappear.

I'm talking exactly about this part of the code:
/* ADD EXCLUSION NAV ITEMS */
  $('.exclude-me,.exclude-me a').addClass('exclude');
  $('.sqs-svg-icon--list a,.SocialLinks-link,.header-menu-controls-control').addClass('exclude');

So, my question is how to specify exactly one item from the dropdown menu. Specifically I need the two languages (CATALÀ and CASTELLANO) to be always shown in the menu IDIOMA. 

I understand that I need to exclude them from the general instruction from before, but I don't know how to indicate it. 

Thank you so much in advance.

  • 2 weeks later...

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.