Jump to content

BloomingDesignCo

Circle Member
  • Posts

    34
  • Joined

  • Last visited

Posts posted by BloomingDesignCo

  1. 7 hours ago, tuanphan said:

    Change this code

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
      setTimeout( function() {
            	$('div.wm-load-container').insertBefore('header#header');
        }, 2000);
    });
    </script>

    to this code

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <div data-wm-plugin="load" data-target="/above-header"></div>
    <script>
      document.addEventListener('wmSectionLoader:loaded', ({detail}) => {
      if (detail.target !== '/above-header') return;
      $('div.wm-load-container').insertBefore('header#header');
    })
    </script>

     

    Thank you so much for getting back to me! I replaced that code, but now I only see it working on the /above-header page, and it doesn't seem to bring up the whole section where the div was, it's only bringing up the div itself. Here I added text inside the div just to show, but the green area is really what I'd like to bring into the header, and on the home page as well, not just this page. Is that possible?

    Screenshot 2024-05-22 at 9.42.20 AM.png

  2. On 11/10/2023 at 2:02 AM, tuanphan said:

    You can add a Not Linked Page > Design a section (Keep the page url slug: /above-header

    Next, install Section Loader Plugin (affiliate link) or this link (non-affiliate link)

    Next, add this code to bottom of Code Injection > Footer

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
      setTimeout( function() {
            	$('div.wm-load-container').insertBefore('header#header');
        }, 2000);
    });
    </script>

    Next, add this code to Website > Website Tools (under Not Linked) > Custom CSS

    /* Add sticky header */
    header#header {
        position: sticky !important;
      	position: -webkit-sticky !important;
        top: 0;
    }
    /* section above header */
    .wm-load-container>section:first-child {
        display: none;
    }
    .wm-load-container .content-wrapper {
        padding: 0 !important;
        max-width: 100% !important;
    }

     

    Hi there, I also think I followed this but can't seem to get it to work. Would you mind looking? Site is cello-fuchsia-szyd.squarespace.com and pw is 1234

    Thank you in advance!

  3. On 2/8/2023 at 2:49 PM, PeterPots said:

    I've been working to resolve the ecommerce revenue reporting issue for the last week now. I've been able to get some revenue data to populate by creating an event modification for the purchase event directly in GA4 (see attached image).

    I think the problem is that SQS does not send the currency type with the purchase event, which is required by GA4 to display the data. By modifying the currency parameter for the event, you can set the currency type. 

    event mod.png

     

    Thank you so much for sharing this screen shot. Going to try this out on my ecommerce site and see if it works!

  4. Really really would love this feature too. Was not surprised in the slightest to not see Squarespace's name in this list:

    Screen Shot 2023-05-05 at 11.45.06 AM.png

  5. On 1/13/2022 at 8:14 PM, tom3 said:

    @claireclausing@Jeremyn @martipurull were you ever able to find a script that did this?

    Yes! Sort of. I was able to find a script that would redirect to the cart after pushing add to cart, but it has to be applied to a whole store page. So I just made a separate store page for this one product. I know that's probably not what you're looking for though. But just in case, here's a link to it:

    https://github.com/tomsWebConsulting/twcsl/tree/main/Redirect to Url After Add to Cart Button Has Been Clicked and SS Indicates Item Has Been Added to Cart#redirect-to-url-after-add-to-cart-button-has-been-clicked-and-ss-indicates-item-has-been-added-to-cart

    Written by @creedon

×
×
  • 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.