Jump to content

Before and After Slider not working

Recommended Posts

Site URL: https://www.tomkahlerphoto.com/shop-presets/presetpack-abyhe

Hey there, 

I'm hoping someone can point me in the right direction. 

I've been using a code injection to create a before and after slider on my images in Squarespace. I've been using this code (see below) for the past year or so and haven't had any issues. However, as I made a new page to sell my presets and wanting to create some more befores and afters the injection code now doesn't seem to work properly. It works fine on the editing page but as soon as it goes live I have to refresh for the injection code to work. 

I've read online to turn off the Enabling Ajax, which i have done but this hasn't worked. Unfortunately i don't have any coding experience and got the injection code off a website. I've also tried deleting the code a line at a time as said on website, but no luck. Any help in the right direction would be really appreciated. 

 

Cheers, Tom

 

Header:

 

<!-- Facebook Pixel Code -->

<!-- End Facebook Pixel Code -->

<!-- Image Slider -->

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>window.jQuery || document.write('<script src="/s/jquery-213min.js"><\/script>')</script>

<script src="/s/jqueryeventmove.js" type="text/javascript"></script>

<script src="/s/jqueryrebeccagrace.js" type="text/javascript"></script>

<link rel="stylesheet" href="/s/original.css" type="text/css" media="screen" /

 

<!-- End of Image Slider -->

 

Footer:

 

<!-- Image Slider -->

 

<script>

$(window).load(function() {

$(".sqs-gallery-block-stacked").rebeccagrace();

});

</script>

 

<!-- End of Image Slider -->

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

This does look like an Ajax Page Loading issue.

Can you try disabling this again?

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Thank you for your quick response. 

I've disabled the Ajax code but still no luck 😞

I have noticed when I click on the website link above, which takes me to the desired preset page, the slider seems to work straight away but wont work when clicking onto the other preset pages on the website. 

Link to comment

It is working for me, now that Ajax is disabled.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.