Jump to content

Navigation menu broken on mobile

Recommended Posts

Posted

Site URL: https://www.lotushealing.fr/home-en

Hello everyone!

My website is broken on mobile and I can't figure out why.

It is about the "Bookings" tab in the navigation menu. It shows up and works on computer, but on mobile, it doesn't.

This tab belongs to an English section of the website

https://www.lotushealing.fr/home-en

This is what I have in Design > Custom CSS

/*HOVER COLOR*/
.header-nav-wrapper a:hover {
color: #78b094 !important;
  transition: width 1s;
}

/*LANGUAGE BUTTON ENG*/
.header-nav-item [href*="home-en"] {
 	font-size: 11px;
    color: white !important;
    background-color: #78b094;
    padding: 0.1rem 0.9rem !important; 	
  border-radius: 0.9rem
}

/*LANGUAGE BUTTON FR*/
.header-nav-item [href*="home"] {
 	font-size: 11px;
    color: white !important;
    background-color: #78b094;
    padding: 0.1rem 0.9rem !important; 	
  border-radius: 0.9rem
}

And what i have in the home-en page

- used to hide the French Language Navigation Links
- used to redirect the homepage button to the right language

<style>
  #header .header-nav-item:nth-child(1) {
  display:none
  }
  #header .header-nav-item:nth-child(2) {
  display:none
  }
  #header .header-nav-item:nth-child(3) {
  display:none
  }
  #header .header-nav-item:nth-child(4) {
  display:none
  }
  #header .header-nav-item:nth-child(5) {
  display:none
  }
</style>
<style>
@media screen and (max-width:1511px) {
    #header .header-menu-nav-item:nth-child(1) {
	display:none
      }
    #header .header-menu-nav-item:nth-child(2) {
	display:none
      }
    #header .header-menu-nav-item:nth-child(3) {
	display:none
      }
    #header .header-menu-nav-item:nth-child(4) {
	display:none
      }
    #header .header-menu-nav-item:nth-child(5) {
  display:none
  }
}
</style>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('a#site-title').attr('href','/home-en');
});
</script>

Does anyone know how to fix this?

 

Love n blessings ❤️

47472f103e397d310f5fcae81587261c.png

d27c569bfdc78aa1337bf97e5899ac86.png

  • Replies 1
  • Views 386
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.