likemindedproductions
Member-
Posts
20 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Everything posted by likemindedproductions
-
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>
-
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.
-
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
- 1 reply
-
- custom-css
- css
-
(and 2 more)
Tagged with:
-
Move footer navigation to top of footer
likemindedproductions replied to likemindedproductions's topic in Customize with code
Thanks but is there any way of just moving the footer nav? I planned on using the footer bottom blocks- 3 replies
-
- custom-css
- css
-
(and 2 more)
Tagged with:
-
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.
- 3 replies
-
- custom-css
- css
-
(and 2 more)
Tagged with:
-
Redirect to specific URL after add-to-cart
likemindedproductions replied to moretrobin's topic in Customize with code
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 -->- 6 replies
-
- shopping-cart
- add-to-cart
-
(and 1 more)
Tagged with:
-
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)
-
Redirect to specific URL after add-to-cart
likemindedproductions replied to moretrobin's topic in Customize with code
Are you still in need for a solution to this?- 6 replies
-
- shopping-cart
- add-to-cart
-
(and 1 more)
Tagged with:
-
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)
- 1 reply
-
- css
- custom-css
-
(and 2 more)
Tagged with:
-
JavaScript calculate age
likemindedproductions replied to likemindedproductions's topic in Customize with code
Brilliant. Thank you so much. I was scratching my head at this for a while. -
Remove author from blog post and page
likemindedproductions replied to likemindedproductions's topic in Customize with code
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- 4 replies
-
- css
- custom-css
-
(and 3 more)
Tagged with:
-
Remove author from blog post and page
likemindedproductions replied to likemindedproductions's topic in Customize with code
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- 4 replies
-
- css
- custom-css
-
(and 3 more)
Tagged with:
-
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
-
Search block text color change
likemindedproductions replied to likemindedproductions's topic in Customize with code
Brilliant. Thank you so much. -
Site URL: https://violin-puma-x79z.squarespace.com/directory Password: temp Hi, I'm trying to change the color of the the 'Search' font when it is static and not being hovered over. The current grey color makes it hard to see (as shown in screenshot) Any help would be greatly appreciated. Best, Andrew
-
Hide End Times from Events in Summary Block
likemindedproductions replied to rodri333's topic in Customize with code
Hi @tuanphan, Yes I've tried this and it doesn't work. Andrew -
Site URL: https://violin-puma-x79z.squarespace.com/events Password: temp Hi, I want to remove the author name from the post pages of only one blog - (https://violin-puma-x79z.squarespace.com/events) and no others on the site. I have tried using this code in the page header but it doesn't work. <style> .blog-meta-item.blog-meta-item--author.p-author.author { display: none; } </style> Any help would be greatly appreciated! Best, Andrew
- 4 replies
-
- css
- custom-css
-
(and 3 more)
Tagged with:
-
Hide End Times from Events in Summary Block
likemindedproductions replied to rodri333's topic in Customize with code
@jpeter I'm having this issue where I am unable to remove the end time in all summary blocks. Any advice? https://violin-puma-x79z.squarespace.com/whats-on/all-shows Password: temp