Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

valecf1

Member
  • Content Count

    4
  • Joined

  • Last visited

  1. Site URL: https://www.jonasstensgaard.com/free-craft-files-svgs-and-more/free-heart-arrow-svg-files I'm on the York template and I'm using the Rating Widget to add a rating option on my products. I want to do two things: 1) How do I remove the "Rate this" box? It's not pretty, takes up space and seems unnecessary. 2) More importantly, I want to move the rating to underneath the Add to Cart button on my product pages. Is that possible? In the example shown, we're in the freebie section and I've replaced the Add to Cart button with a "FREE" text but that probably shouldn't change anything? This is the Javascript code I've inserted into the site wide footer code injection as instructed by the Rating Widget website: <script type="text/javascript">(function(d, t, e, m){ // Async Rating-Widget initialization. window.RW_Async_Init = function(){ RW.init({ huid: "453808", uid: "8f1f467d9b5cc29128dfe57c5c13d115", source: "website", options: { "advanced": { "font": { "hover": { "color": "#3C68BB" }, "color": "#3C68BB" } }, "size": "medium", "label": { "background": "#B6C3DB" }, "style": "flat_yellow", "isDummy": false } }); RW.render(); }; // Append Rating-Widget JavaScript library. var rw, s = d.getElementsByTagName(e)[0], id = "rw-js", l = d.location, ck = "Y" + t.getFullYear() + "M" + t.getMonth() + "D" + t.getDate(), p = l.protocol, f = ((l.search.indexOf("DBG=") > -1) ? "" : ".min"), a = ("https:" == p ? "secure." + m + "js/" : "js." + m); if (d.getElementById(id)) return; rw = d.createElement(e); rw.id = id; rw.async = true; rw.type = "text/javascript"; rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck; s.parentNode.insertBefore(rw, s); }(document, new Date(), "script", "rating-widget.com/"));</script> And this is the on-page code that I've inserted into a code block on the specific product page: <div class="rw-ui-container"></div> Thanks in advance! 🙂
  2. Site URL: https://www.jonasstensgaard.com/shop/funny-home-is-where-quote-bundle-svg-cut-files-family-quote-craft-file-funny-quote-design I'm on the York template. I've just started implementing Adsense on my website and have added ads via code blocks but I noticed a problem: When I add the ad blocks it destroys the way the navigation works on mobile. When I say destroy I mean you can click the hamburger menu but it looks like the menu is empty. In fact it looks like it's empty when in reality a LOT of space has been added above and below the links. The problem exists both in real-life viewing as well as through my squarespace website editor. I contacted Squarespace support and the guy I spoke to found out the problem only exists when using Safari. I tried clearing the cache and all that by following these instructions: https://support.squarespace.com/hc/en-us/articles/115004581087 But that didn't solve the issue. I also tried removing my code from the site-wide Code Injection as well as the custom CSS but that didn't change anything. Also, on pages similar to the one I linked to where I haven't added any ad code block the problem doesn't exist. So it has something to do with the way Safari handles the code block with the ad code maybe? Any idea as to how I can solve this problem? EDIT: So, I managed to do a sort of fix where I added custom CSS that targeted the container of the menu: .overlay-nav-container { height: 0px; } I just set the height to 0px and that fixed the problem - but you can still scroll and scroll because when I inspected the site code it said the container height was more than 5000px! Why does it say that? And is there another and more proper way to fix this? And is the code I added safe enough to use or will it create problems for me in some other part of my site?
  3. Site URL: https://www.jonasstensgaard.com/free-craft-files-svgs-and-more/free-easter-egg-heart-cut-files I'm on the York template. Question 1: On this product page https://www.jonasstensgaard.com/free-craft-files-svgs-and-more/free-easter-egg-heart-cut-files I'd ideally want to REPLACE the "Add to Cart" button with just a normal button for downloads but I can't find any code for that. Does it exist? Or would I need to buy a plugin? As a workaround, I figured I'd just REMOVE the "Add to Cart" button entirely and add the download button in the Additional Info section but the code I found in another thread didn't do the trick. Let me explain. Here's the code: <style> .sqs-add-to-cart-button-wrapper { display: none !important; } </style> I placed it in the Page Header Code Injection of the specific shop page where it's only freebies (https://www.jonasstensgaard.com/free-craft-files-svgs-and-more) and it worked - but only once I added the "!important" part. But the code also removed the "Add to Cart" button on all my other shop pages where I actually sell products and don't want to remove the button. So my question is: How do I remove the "Add to Cart" button on ONE specific shop front page without affecting other shop front pages? EDIT: So I managed to remove the "Add to Cart" button on my freebie shop front page without it affecting other shops by adding a tag, in this case "freebie" to the free product. So it looks like this ".tag-freebie". Full code: <style> .tag-freebie .sqs-add-to-cart-button-wrapper { display: none !important; } </style> But I'd still be interested to know if there's a (free) way of replacing the "Add to Cart" button with just a simple download button instead of having to place it in the Additional Info section. But if there isn't a way, this works too. Question 2: Using this code from Ghostplugins (https://www.ghostplugins.com/steps/kqw603hn) I changed the price ONLY ON THE INDIVIDUAL item pages! But on the freebie front page (https://www.jonasstensgaard.com/free-craft-files-svgs-and-more), how do change it to say FREE instead of "$0.00". And if that's not possible, is there a way to remove the "$0.00" entirely?
×
×
  • Create New...