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
-
Begona reacted to a post in a topic: How to add content blocks to left column on Event Detail pages?
-
tuanphan reacted to a post in a topic: How to add content blocks to left column on Event Detail pages?
-
creedon reacted to a post in a topic: How to add content blocks to left column on Event Detail pages?
-
likemindedproductions reacted to a post in a topic: How to add content blocks to left column on Event Detail pages?
-
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>
-
likemindedproductions started following JavaScript calculate age , How to add content blocks to left column on Event Detail pages? , Add Adsense code to Event pages and 3 others
-
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:
-
Beyondspace reacted to a post in a topic: Remove author from blog post and page
-
Beyondspace reacted to a post in a topic: Remove author from blog post and page
-
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. -
likemindedproductions reacted to a post in a topic: Remove author from blog post and page
-
likemindedproductions reacted to a post in a topic: Remove author from blog post and page
-
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.