Jump to content

Turn Off Carousel Arrows

Recommended Posts

Site URL: https://rafida.org

Hey,

I've added code (see below) to customise the arrows for the summary carousel block.

Prior to the code, the arrows would disappear if there was no additional content to show other than what you see at first glance.
After adding the code, the arrows show up all the time.

Is there any way to adjust the code to make the arrows not show up unless there are more items to show?

An example of where we would need this would be the 'OUR PROJECTS' section on our home page:

Site access:
https://rafida.org
pass: lastphasetesting3


Kind regards
 

/*Change summary arrows style*/

.sqs-gallery-design-carousel .sqs-gallery-controls .next,
.sqs-gallery-design-carousel .sqs-gallery-controls .previous {
 display: block;
 float: right;
 position: relative;
 top: auto;
 left: -15px;
 right: 15px;
 bottom: auto;
 margin: 0 0 15px 0;
 padding: 0;
 background-color: transparent;
 color: inherit !important;
 font-size: 16px;
 line-height: 16px;
 cursor: pointer;
}

.sqs-gallery-design-carousel .sqs-gallery-controls .next:before {
 font-family: 'squarespace-ui-font';
 font-style: normal;
 speak: none;
 font-weight: normal;
 -webkit-font-smoothing: antialiased;
 content: "\E003";
 text-align: center;
 display: inline-block;
 vertical-align: middle;
}

.sqs-gallery-design-carousel .sqs-gallery-controls .next:before {
 font-size: 64px;
 width: 64px;
 height: 64px;
 line-height: 64px;
}

.sqs-gallery-design-carousel .sqs-gallery-controls .next:before {
 font-size: 50px;
 width: 30px;
 height: 32px;
 line-height: 32px;
}

.sqs-gallery-design-carousel .sqs-gallery-controls .previous {
 margin-right: 10px;
}

.sqs-gallery-design-carousel .sqs-gallery-controls .previous:before {
 font-family: 'squarespace-ui-font';
 font-style: normal;
 speak: none;
 font-weight: normal;
 -webkit-font-smoothing: antialiased;
 content: "\E000";
 text-align: center;
 display: inline-block;
 vertical-align: middle;
}

.sqs-gallery-design-carousel .sqs-gallery-controls .previous:before {
 font-size: 64px;
 width: 64px;
 height: 64px;
 line-height: 64px;
}

.sqs-gallery-design-carousel .sqs-gallery-controls .previous:before {
 font-size: 50px;
 width: 16px;
 height: 32px;
 line-height: 32px;
}

.summary-carousel-pager .previous {
   position: absolute !important;
   left: 18px !important;
   right: inherit !important;
}

 

Link to comment
  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

To remove summary arrow manually, add this to Home > Design > Custom CSS

.homepage .summary-carousel-pager-next, .homepage .summary-carousel-pager-prev {
    display: none !important;
}

 

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
div#page-5f70f33035ffa16c0e85518f {
.summary-carousel-pager-next, .summary-carousel-pager-prev {
    display: none !important;
}}

I don't see Patreon...

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
/* remove carousel arrow on desktop - tablet */
@media screen and (min-width:641px) {
div#page-5f70f33035ffa16c0e85518f {
.summary-carousel-pager-next, .summary-carousel-pager-prev {
    display: none !important;
}}
}

 

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.