Jump to content

Coding showing on Mobile Site

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Please send screenshot, I dont see it

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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
14 hours ago, omorton said:

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

Can you take screenshot the error?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.