Jump to content

Anyone know how to troubleshoot this code for Cover page?

Recommended Posts

Hi,

 

I was given this code to create this effect on my cover page. So that the text would be more legible.

 

However when I add it to the custom css page, it does not seem to apply. Does anyone have any insight on how to fix or why it is not working?

 

Thanks!

Greg

image.png.dec2f6ee8231c1289dd8a235f2e6f09e.png

 

 

Code-

 

.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="buttons"] li, .sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] li, .sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="sso-options"] li {
  background: rgba(226, 226, 226, .8);
}

.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] ul li a {
  color:#000;
}

.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] ul li a {
  padding-left: 0.3em!important;
  padding-right: 0.1em!important;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
}

 

 

 

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

CSS code can't run on Cover Page. You can use this code to Cover Page Header Code Injection

<style>
  .sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="buttons"] li, .sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] li, .sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="sso-options"] li {
  background: rgba(226, 226, 226, .8);
}

.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] ul li a {
  color:#000;
}

.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] ul li a {
  padding-left: 0.3em!important;
  padding-right: 0.1em!important;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
}
</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

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.