Jump to content

how can I remove the folder title showing as "All [folder name]" on mobile drop down menu?

Recommended Posts

Hi, I have a question regarding the mobile menu drop down folder.

I have a menu folder that both drops down when hovered over to show the contents, as well as when clicked opens up and show all contents as an overview. This works on the destop browser.

However on mobile theres' no hovering possible, so when clicked the menu drops down and shows an additional option with "All [folder name]", see photo attached (here it says All Unternehmen).

This wouldnt be a problem if the site was in English...

Does anyone know how to adjust the word "all" in this context?

Thanks so much for any help!

TT

Bildschirm­foto 2023-03-27 um 23.14.53.png

Link to comment

How did you add language? To rename "All" we can add this code to Code Injection > Footer (but this code will run on all pages)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
  $(document).ready(function(){
    $("div.header-menu-nav-item").html(function() { 
          return $(this).html().replace("All", "newAll");  
    });
});
</script>

image.png.d2fa20bcb89a6bf96c58c4e7cceb5a5d.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

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.