Rafida Posted September 27, 2020 Share Posted September 27, 2020 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.orgpass: 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
Rafida Posted September 27, 2020 Author Share Posted September 27, 2020 @paul2009 @tuanphan I took the above code from another thread where you guys helped someone change the style for the arrows. Any idea if my requirement above is possible? Link to comment
tuanphan Posted September 28, 2020 Share Posted September 28, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Rafida Posted September 28, 2020 Author Share Posted September 28, 2020 @tuanphan Sorry that removed the arrows for all summaries. We only want to remove the arrows from summaries that do not have multiple pages. Is that possible? Link to comment
tuanphan Posted September 29, 2020 Share Posted September 29, 2020 Which summary? Can you take screenshot? 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
Rafida Posted September 29, 2020 Author Share Posted September 29, 2020 The first 2 summaries on the home page do not have any additional pages, yet show the arrow (see screenshots) Link to comment
tuanphan Posted September 30, 2020 Share Posted September 30, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Rafida Posted October 1, 2020 Author Share Posted October 1, 2020 Thanks I think I can figure it out for Patreon using your code! Is there anyway to adjust the code to make it remove the arrows only on desktop and not on mobile? Link to comment
Rafida Posted October 2, 2020 Author Share Posted October 2, 2020 @tuanphan Any idea? Link to comment
tuanphan Posted October 3, 2020 Share Posted October 3, 2020 /* 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
Rafida Posted October 4, 2020 Author Share Posted October 4, 2020 Worked perfectly. Thanks! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.