Jump to content

How can I change the arrow style in a 'reel gallery' on version 7.1?

Recommended Posts

Site URL: http://www.studiolilykate.com/

Hey guys and gals, I'm wanting to know if there is a way to change the arrows that seem to be default and the only option when you select the 'reel slideshow' in version 7.1.
I'd like to change them to the more minimalist style arrow available though the other gallery options slideshow full & simple & not have the transparent box that backs it. 
(I've attached a picture of the section on my website and the default arrows that it comes with.)
Thank you in advance for anyone who has the answer!

Lily 
xx

Screen Shot 2020-09-30 at 10.54.13 AM.png

Link to comment

To implement the following you will need the business plan or above

Please see Gallery Section Reel Style Buttons to Slideshow Simple.

The cited code is for a v7.1 site using a gallery type of slideshow reel.

If you want the effect site wide then the above code would probably need to be adapted. I didn't test for that scenario.

I also didn't test on mobile.

Basically what the code is doing is updating the classes used for the reel style buttons to the styles for slideshow simple. In addition it replaces the SVG for the reel button icon with the slideshow simple icon.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment
  • 5 months later...

Hi Creedon and all.  I want to use the code above for the custom arrows but I already have some code that makes the slideshow reel autoscroll.  When I add this code below that, the arrows are there but the autoscroll stops.  Any help would be so appreciated.  Thanks!

This is the code for the auto scroll.  The first part goes into the Page Header Advanced Settings and then the second part goes into the custom CSS 

<script   src="https://code.jquery.com/jquery-3.5.1.js"></script>

<script>

$(function(){

  window.setInterval(function(){

    {$("html:not(.sqs-modal-lightbox-open) body:not(.sqs-edit-mode-active, .sqs-edit-mode) .gallery-reel-control:nth-of-type(2) .gallery-reel-control-btn")

    [0].click()}     

  }, 2000);

});

</script>

 

 

CSS

[data-section-id='YOUR DATA SECTION ID']{
  .gallery-reel{
    height:20vh !important;
    padding-left: 0px;
    padding-right: 0px;

    figure{
    filter:grayscale(100%);
    }

    .gallery-reel-controls{
      display:none;
    }
  }
}
Link to comment

@matthewk

My guess is that the problem occurs because my code is changing the class which controls the shape of the arrow.

.gallery-reel-control-btn is being changed to gallery-slideshow-control-btn

You would need to change the auto scroll code similarly.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

That worked!  Thank you.  For anyone else that wants the minimalist buttons and for the reel to scroll, this is what I used:

<script>

  $( ( ) => {
  
    // returns svg element
    
      buttonSvg = ( direction, points ) => {
      
        let $e = $( '<svg class="caret-' + direction + '-icon--small" viewBox="0 0 9 16">' +
        
          '<polyline fill="none" stroke-miterlimit="10" points="' + points + ' ">' +
          
            '</polyline>' +
            
          '</svg>' );
          
        return $e;
        
        }
        
    // simple class changer
    
      simpleClassChanger = ( old, nw ) => {
      
        $( '.' + old )
        
          .removeClass ( old )
          
          .addClass ( nw );
          
        }
        
    simpleClassChanger ( 'gallery-reel-controls', 'gallery-slideshow-controls' );
    
    // start previous button
    
      $( '.gallery-reel-control:nth-of-type( odd )' )
      
        .removeClass ( 'gallery-reel-control' )
        
        .addClass ( 'gallery-slideshow-control gallery-slideshow-control-prev' )
        
        .each ( function ( ) {
        
          $( 'svg', $( this ) ).replaceWith ( buttonSvg ( 'left',
          
            '7.3,14.7 2.5,8 7.3,1.2' ) );
            
          } );
          
      // end previous button
      
    // start next button
    
      $( '.gallery-reel-control:nth-of-type( even )' )
      
        .removeClass ( 'gallery-reel-control' )
        
        .addClass ( 'gallery-slideshow-control gallery-slideshow-control-prev' )
        
        .each ( function ( ) {
        
          $( 'svg', $( this ) ).replaceWith ( buttonSvg ( 'right',
          
            '1.6,1.2 6.5,7.9 1.6,14.7' ) );
            
          } );
          
      // end next button
        
    simpleClassChanger ( 'gallery-reel-control-btn', 'gallery-slideshow-control-btn' );
    
    simpleClassChanger ( 'gallery-reel-control-btn-icon',
    
      'gallery-slideshow-control-btn-icon' );
      
    } );
    
$(function(){
  window.setInterval(function(){
    {$("html:not(.sqs-modal-lightbox-open) body:not(.sqs-edit-mode-active, .sqs-edit-mode) .gallery-slideshow-control:nth-of-type(2) .gallery-slideshow-control-btn")
    [0].click()}     
  }, 2000);
});
</script>

 

Link to comment
  • 2 weeks later...
On 3/31/2021 at 9:32 PM, creedon said:

@matthewk

Not off the top of my head by visual identification.

Can you provide a URL for a page for the first image or tell us which type of gallery it is? Also which version of SS?

A URL to a page is worth a thousand words! 🙂

Did you ever solve for this question, I'd love to know as well. Thanks!

Link to comment
  • 11 months later...

Hey, @creedon, thanks so much for helping with this. Is there a way to center the <> reel slideshow arrows instead os having them appear on the far left/right side of the images? Also, can the arrows be centered above the gallery images instead of below? I'm looking to replicate the position of the Arrows from my Summary Block in the image attached.

Thanks!

Screen Shot 2022-04-01 at 4.53.36 PM.png

Link to comment
10 hours ago, Romeo said:

Hey, @creedon, thanks so much for helping with this. Is there a way to center the <> reel slideshow arrows instead os having them appear on the far left/right side of the images? Also, can the arrows be centered above the gallery images instead of below? I'm looking to replicate the position of the Arrows from my Summary Block in the image attached.

Thanks!

Screen Shot 2022-04-01 at 4.53.36 PM.png

If you share link to page where you use reel, we can help easier

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 4/1/2022 at 1:54 PM, Romeo said:

Is there a way to center the <> reel slideshow arrows instead os having them appear on the far left/right side of the images? Also, can the arrows be centered above the gallery images instead of below?

Please see Gallery Block Carousel Arrows Top Center.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

Hey, @creedon, thanks for the help, but your CSS (Gallery Block Carousel Arrows Top Center) affected the arrows on all the galleries except for 'Slideshow:Reel', which I customized using your code Gallery Section Reel Style Buttons to Slideshow Simple.

Currently the arrows are on the far left/right of this 'Slideshow:Reel' component:

image.thumb.png.7f5e7238342402da8c8285ae7e7e1db8.png

I'd like them to appear centered and above the content like my 'Summary' section below:

124284116_ScreenShot2022-04-01at4_53_36PM.thumb.png.ee095618818d8e89d5e951b8bc5eac35.png

I hope this is clear, thanks again.

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.