Jump to content

CSS cover page navigation changes reverting to default

Go to solution Solved by creedon,

Recommended Posts

Hi,

I've added CSS to the cover-page on my site to position the navigation in top left corner, but it keeps reverting back to the original default CSS. 

<style>
 [data-slice-type="navigation"] {
   position: fixed !important;
   left: 25px !important; 
   top: 25px !important;
 }
</style>

When I load the page the nav goes to the top left for a split second and then moves back to the default spot.

Here is a link to the site – www.designbyassoc.com

Is there some CSS that can disable the default settings for that page?

Thanks

 

 

Edited by Michaelo
left off website address
Link to comment

Try the following.

<style>

  /* Center navigation at top */

  @media only screen and ( min-width : 768px ) {
  
    .sqs-slide-wrapper[ data-slide-type="cover-page" ] .sqs-slice-group.align-center-vert {
    
      top : unset !important;
      transform : unset !important;
      
      }
      
    }
    
  </style>

Let us know how it goes.

Edited by creedon
version 2

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Try something like the following.

.sqs-slide-wrapper[ data-slide-type="cover-page" ] [ data-slice-type="navigation" ] ul {

  font-size : 25px;
  
  }

You'll of course need to wrap the ruleset in a media query.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.