Jump to content

Coding showing on Mobile Site

Recommended Posts

  • Replies 4
  • Views 662
  • Created
  • Last Reply

Please send screenshot, I dont see it

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

In Code injection Header, find this code

// Fade Out Line Buttom - Right To Left //

.sqs-block-button-element--small {
  position:relative;
  height: 60px;
  line-height: 60px;
  text-align: center;
  transition: 0.5s;
  padding: 0 20px;
  cursor: pointer;
  -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
  background-color: transparent;
  border-color: transparent;
  color: #000000;
}
 .sqs-block-button-element--small:hover:before{
    transition-delay: .2s;
}

.sqs-block-button-element--small::before{
  width: 0%;
  height: 100%;
  z-index: 3;
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  box-sizing: border-box;
  transition: .2s;

}

.sqs-block-button-element--small:hover::before {
  width: 100% !important;
  transition: .7s;
}

.sqs-block-button-element--small::before {
  border-bottom: 2px solid #000000;
}

change it to

<style>
.sqs-block-button-element--small {
  position:relative;
  height: 60px;
  line-height: 60px;
  text-align: center;
  transition: 0.5s;
  padding: 0 20px;
  cursor: pointer;
  -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
  background-color: transparent;
  border-color: transparent;
  color: #000000;
}
 .sqs-block-button-element--small:hover:before{
    transition-delay: .2s;
}

.sqs-block-button-element--small::before{
  width: 0%;
  height: 100%;
  z-index: 3;
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  box-sizing: border-box;
  transition: .2s;

}

.sqs-block-button-element--small:hover::before {
  width: 100% !important;
  transition: .7s;
}

.sqs-block-button-element--small::before {
  border-bottom: 2px solid #000000;
}
</style>

Also I see on mobile, big white space under header

You can add this to Design > Custom CSS to solve

/* remove home white space */
@media screen and (max-width:767px) {
.homepage #page section:first-child {
    padding-top: 0 !important;
}
}

white2.png.4c6ff78f9ed69e43d9313217d25b58ea.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
On 11/11/2020 at 8:13 AM, tuanphan said:

In Code injection Header, find this code


// Fade Out Line Buttom - Right To Left //

.sqs-block-button-element--small {
  position:relative;
  height: 60px;
  line-height: 60px;
  text-align: center;
  transition: 0.5s;
  padding: 0 20px;
  cursor: pointer;
  -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
  background-color: transparent;
  border-color: transparent;
  color: #000000;
}
 .sqs-block-button-element--small:hover:before{
    transition-delay: .2s;
}

.sqs-block-button-element--small::before{
  width: 0%;
  height: 100%;
  z-index: 3;
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  box-sizing: border-box;
  transition: .2s;

}

.sqs-block-button-element--small:hover::before {
  width: 100% !important;
  transition: .7s;
}

.sqs-block-button-element--small::before {
  border-bottom: 2px solid #000000;
}

change it to


<style>
.sqs-block-button-element--small {
  position:relative;
  height: 60px;
  line-height: 60px;
  text-align: center;
  transition: 0.5s;
  padding: 0 20px;
  cursor: pointer;
  -webkit-transition:0.5s;
}

.sqs-block-button-element--small:hover {
  background-color: transparent;
  border-color: transparent;
  color: #000000;
}
 .sqs-block-button-element--small:hover:before{
    transition-delay: .2s;
}

.sqs-block-button-element--small::before{
  width: 0%;
  height: 100%;
  z-index: 3;
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  box-sizing: border-box;
  transition: .2s;

}

.sqs-block-button-element--small:hover::before {
  width: 100% !important;
  transition: .7s;
}

.sqs-block-button-element--small::before {
  border-bottom: 2px solid #000000;
}
</style>

Also I see on mobile, big white space under header

You can add this to Design > Custom CSS to solve


/* remove home white space */
@media screen and (max-width:767px) {
.homepage #page section:first-child {
    padding-top: 0 !important;
}
}

white2.png.4c6ff78f9ed69e43d9313217d25b58ea.png

The header customization code you provided is giving a syntax error.

Link to comment

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.