Jump to content

How to fix site header when tab is shrunk

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 10
  • Views 377
  • Created
  • Last Reply

Top Posters In This Topic

It looks like you used CSS code to make left right menu.

Can you disable these code, then change layout to Left Nav - Middle Logo? We can give new code to achieve similar effect & have no problem above

If the site is live & you can't do this, you can duplicate the site & do there

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
  • Solution
On 2/7/2023 at 7:11 AM, TimothyM said:

Alright, Here is the link

 

https://robin-synthesizer-8tep.squarespace.com/

 

password is: nautical

 

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('.header-display-desktop nav.header-nav-list').clone().appendTo('.header-display-desktop .header-actions.header-actions--right');
})
</script>
<style>
  .header-nav nav>div:nth-child(n+5) {
    display: none;
}
.header-actions.header-actions--right>nav>div:nth-child(-n+4) {
    display: none;
}
.header-actions.header-actions--right>nav:nth-child(2) {
    display: none;
}
.header-nav-item:not(:last-child) {
    margin-right: 1.5vw;
}
</style>

 

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
On 2/3/2023 at 3:30 PM, tuanphan said:

It looks like you used CSS code to make left right menu.

Can you disable these code, then change layout to Left Nav - Middle Logo? We can give new code to achieve similar effect & have no problem above

If the site is live & you can't do this, you can duplicate the site & do there

Have you disabled the current CSS code yet?

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.