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
  • Views 2.4k
  • Created
  • Last Reply
/* 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.