Jump to content

likemindedproductions

Member
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

likemindedproductions's Achievements

  1. Thanks for the response but I've built a fix: <script>// Get the last code block in the .event-details element (function(){ let lastCodeBlock = document.querySelector('.eventitem-column-content .sqs-block-code') // Get the .eventitem-column-meta element let eventColumn = document.querySelector('.eventitem-column-meta'); // Move the last code block to the .eventitem-column-meta element eventColumn.append(lastCodeBlock); }()) </script>
  2. Is there a way to do this with a code block but have it repeat on every event page? https://www.openingnights.co.uk/events/ph/six
  3. Hi all! I'm looking to utilise the blank space on Events pages (as shown to the left of the screenshot) to add adsense to every event/calendar page. It would appear after the '.eventitem-column-meta' Any help greatly appreciated.
  4. Site URL: https://openingnights.co.uk Example page in question: https://www.openingnights.co.uk/news/archive/sweet-mother-returns-to-stage-following-arts-council-england-funding-success Hi, I'm looking to limit the amount of items in a summary block on mobile If I have it set to 6 items for desktop, I only want to show 2 on mobile. Thank you for any help in advance
  5. Thanks but is there any way of just moving the footer nav? I planned on using the footer bottom blocks
  6. Site URL: https://walrus-mauve-mzzp.squarespace.com Password: temp Hi, I want to move the footer navigation from the bottom of the footer to the top of the footer. Tried searching around but can't find a solution. Any help would be greatly appreciated.
  7. Add this to Settings > Advanced > Code Injection > Header: <!-- Redirect to Page after clicking on 'Add To Cart' Button --> <script> // /upsell-page is the default URL. To change it, replace /upsell-page with the required URL. var upsellPageUrl = "/upsell-page" //////////////////////////////// function redirectToUpsellPageHandler(wrapper){var addToCartButton=wrapper.querySelector(".sqs-add-to-cart-button"),productVariants=wrapper.querySelector(".product-variants");function isVariantInStock(){return productVariants.getAttribute("data-variant-in-stock")}function onClick(){(productVariants&&isVariantInStock()||!productVariants)&&setTimeout((function(){document.location.href=upsellPageUrl}),1200)}addToCartButton&&addToCartButton.addEventListener("click",onClick)}function redirectToUpsellPage(){var productPage=document.querySelector(".collection-type-products.view-item #productDetails, .collection-type-products.view-item .ProductItem-details:not(.ProductItem-details--mobile)"),productBlocks;productPage&&redirectToUpsellPageHandler(productPage),[].slice.call(document.querySelectorAll(".sqs-block-product")).forEach(redirectToUpsellPageHandler)}document.addEventListener("DOMContentLoaded",redirectToUpsellPage),window.addEventListener("mercury:load",redirectToUpsellPage); </script> <!-- end Redirect to page after clicking on Add To Cart Button -->
  8. Site URL: https://www.openingnights.co.uk/ Hi, I'm looking to hide a single items quantity once in the cart. It will only ever be the 'Ticket Protection' product as shown in the screenshot (Circled). If it helps, this item is in a store of it own away from all other products? Is this even possible? Any help is greatly appreciated (The ability to add 'Ticket Protection' is here: https://www.openingnights.co.uk/tickets/up/ticket-protection)
  9. Site URL: https://www.openingnights.co.uk/ https://www.openingnights.co.uk/ Hi, I'm looking to hide a single items quantity once in the cart. It will only ever be the 'Ticket Protection' product as shown in the screenshot (Circled). If it helps, this item is in a store of it own away from all other products? Is this even possible? Any help is greatly appreciated (The ability to add 'Ticket Protection' is here: https://www.openingnights.co.uk/tickets/up/ticket-protection)
  10. Brilliant. Thank you so much. I was scratching my head at this for a while.
  11. Yes, I figured it out last night. I was trying to just remove the author at first but decided to remove all the meta data in the end. <style>.Blog-meta-item { display: none !important;} </style> Thank you so much for your time. Andrew
  12. Hi, Sorry the page has moved to: https://violin-puma-x79z.squarespace.com/directory/archive/ Password: temp It is to remove the meta data in the red boxes from the blog posts and blog page (see screenshots) but only from this blog. (https://violin-puma-x79z.squarespace.com/directory/archive/) Best, Andrew
  13. Site URL: https://violin-puma-x79z.squarespace.com/ Hi, I've been trying to get an age in years to show inside the code block but I cant get it to display the return value. <!DOCTYPE html> <html> <body> <p>Calculating age...</p> <p id="howold"></p> <script> today = new Date() past = new Date(1993,03,07) // remember this is equivalent to 06 01 2010 //dates in js are counted from 0, so 05 is june function calcDate(date1,date2) { var diff = Math.floor(date1.getTime() - date2.getTime()); var day = 1000 * 60 * 60 * 24; var days = Math.floor(diff/day); var months = Math.floor(days/31); var years = Math.floor(months/12); var message = years + " years" return message } a = calcDate(today,past) console.log(a) document.getElementById("howold").innerHTML = calcDate(date1,date2); </script> </body> </html> Any ideas? Andrew
×
×
  • 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.