Jump to content

geglaja

Circle Member
  • Posts

    101
  • Joined

  • Last visited

Reputation Activity

  1. Like
    geglaja got a reaction from Osman_04 in Video on Hover   
    Hello,
    Could you please advise on how to set up a video so that it starts playing on hover, but with a video file rather than a YouTube or Vimeo link? Also, the video should have sound.
    Thank you.
     
    Link: https://mathieu.squarespace.com/
    Password: Glou
  2. Thanks
    geglaja got a reaction from paul2009 in After play has been initiated, AUDIO/MUSIC files open in a different screen (only on iPhone).   
    Solution: 
    cc. Thanks @paul2009
  3. Thanks
    geglaja reacted to paul2009 in Audio Blocks opening new window in IOS   
    On iOS devices (iPhones, iPads) Audio Blocks detect that iOS is being used and they default to the built-in iOS player that opens on a new page. 
    You should be able to stop this by using some code to tell the Squarespace Audio Block that the visitor is not using iOS. This should prevent the block attempting to invoke the built in iOS player.  To do this, add the following script to Settings > Advanced > Code Injection > Footer:
    <script>   window.addEventListener("load", function(){     Y.UA.ios = 0;    }) </script> Note: This was tested on a Squarespace 7.1 site running Safari on iOS 15.
      If my post helped you, please click a 'Like' or 'Thanks' icon below  ⬇️
  4. Like
    geglaja got a reaction from Ziggy in Contact forms cannot be closed   
    Thanks, it was the one from CSS 🙂 
    .form-wrapper {
    background: white; 
      opacity: 0.8;
    padding:85px; 
    border-style:solid; 
    border-width:0px; 
    border-color: black;
    }
     
    Regards,
    Gerda
  5. Like
    geglaja reacted to arutz in Decreased quality for background videos on mobile   
    Also just chiming in to reinforce that Andrew's plugin worked like a charm!  Also, despite Squarespace making some poorly timed (at least for me, as I was launching my new small business' website) tweaks to their site architecture, Andrew was incredible responsive and helpful in working with and troubleshooting with me to help navigate those.  So, I'd say the plugin itself is worth the $10, but then to have Andrew's attentiveness and support along with it, it's pretty invaluable.  Thanks, Andrew!
  6. Like
    geglaja reacted to digitalfreelancer in Decreased quality for background videos on mobile   
    Hi everyone, I've noticed this too and the reason is because if you've uploaded a HD 1920x1080 video then Squarespace will use a low-res 640x340 version of that video if you view the website on small screens like mobiles. As Paul says, the reason is to keep the video file size small so it can successfully load on lower quality internet connections.
    However, I think visitors expect HD quality video even on mobile, and most people have the connection speed to pretty quickly access high resolution video. So I've written a plugin that overrides what Squarespace is doing and forces the higher resolution version of the video to play. I've done a demo on Youtube, and more information is on my website.
    Any questions let me know.
    Andrew
    Digital Freelancer
  7. Like
    geglaja reacted to drosas in Decreased quality for background videos on mobile   
    For anyone having this problem, Andrew's plugin above  ^^^  worked right away for me. It's $10, but will save you the hassle of trying to figure it out on your own or switching to another platform. Thanks Andrew. 
  8. Like
    geglaja reacted to paul2009 in Checkout button redirect to email and Shopping cart expanded at the bottom of the page   
    Please take a look at our Wishlist extension and let us know if you have any questions:
     
  9. Like
    geglaja got a reaction from Aura_Anonymous in Decreased quality for background videos on mobile   
    Site URL: https://www.overlandready.eu/
    Hello,
    Could You, please, advice, whats happening and how to increase the quality for background videos on mobile? (very pixelated and dull...)
    Thanks & regards,
    Gerda
  10. Thanks
    geglaja reacted to paul2009 in Variant options for digital download products   
    Digital products cannot have variants on Squarespace.
  11. Thanks
    geglaja reacted to paul2009 in Weglot translated checkout   
    Latvian isn’t a supported language so Squarespace does not have a Latvian checkout page. You would typically build the site in English (or another supported language) and then use Weglot to translate into Latvian. 
  12. Like
    geglaja reacted to paul2009 in Weglot translated checkout   
    Yes. The Squarespace checkout will only be translated if you set up your language subdomain (you can do this by clicking Setup Subdomain in Settings > Language & Region, under Multilingual SEO.
     
    Did this help? Please give feedback by clicking an icon below  ⬇️
  13. Like
    geglaja reacted to Beyondspace in Waitlist / product-restock-form – Custom Placeholder Text   
    Try adding to Home > Settings > Advanced > Code injection, choose footer
    <script> (function() { window.addEventListener('DOMContentLoaded', () => { const inputForm = document.querySelector('.product-restock-form input'); if(inputForm) { inputForm.setAttribute('placeholder', 'Your address'); } }); })() </script> Let me know how it works on your site
  14. Like
    geglaja reacted to paul2009 in adding upload jpeg button to form   
    You'll need to use a third party forms provider or use a third party service to accept the files.
    For example, Squarewebsites 🇺🇦 has a service called the Squarespace Websites Uploader.
  15. Like
    geglaja reacted to paul2009 in Car rental booking websites   
    I don't think Squarespace is a suitable platform for a car rental website. It would usually require a more bespoke solution. As this is a Squarespace forum, I don't have any recommendations.
  16. Thanks
    geglaja reacted to RemyFoxi in Logo link redirect! ...Would love some help on that :)   
    So good this works, thank you  so much @tuanphan! God bless you
    Also @geglaja, i followed this tutoral for the button
     
    Have a good day!
     
     
  17. Like
    geglaja reacted to tuanphan in [Share] Accordion Block: Useful code   
    Squarespace released an Accordion Block a few weeks ago.
    Here are some useful code when you use the accordion block (Add to Design > Custom CSS)
    #1. Change Dividers Color
    /* accordion divider color */ .accordion-divider { color: #ff00ff !important; } #2. Change Arrows Color
    /* accordion arrows color */ .accordion-block .arrow { border-color: #ffff00 !important; } #3. Add icons before Accordion Titles
    /* Accordion icons before titles */ li.accordion-item .accordion-item__title:before { content: ""; width: 20px; height: 20px; display: inline-block; background-repeat: no-repeat; background-size: contain; background-position: bottom center; } li.accordion-item:nth-child(1) .accordion-item__title:before { background-image: url(https://cdn.pixabay.com/photo/2021/11/02/15/30/tealights-6763542__340.jpg); } li.accordion-item:nth-child(2) .accordion-item__title:before { background-image: url(https://cdn.pixabay.com/photo/2019/10/23/06/30/hamburg-4570577__340.jpg); } li.accordion-item:nth-child(3) .accordion-item__title:before { background-image: url(https://cdn.pixabay.com/photo/2021/02/17/08/02/woman-6023442__340.jpg); } #4. Different Color for Accordion Titles
    /* accordion title colors */ li.accordion-item:nth-child(1) .accordion-item__title { color: red; } li.accordion-item:nth-child(2) .accordion-item__title { color: blue; } li.accordion-item:nth-child(3) .accordion-item__title { color: violet; } #5. Change a specific word color in Accordion Content
    First make it bold then use this CSS
    /* accordion content specific word color */ .accordion-item__description strong { font-weight: normal; color: red; } #6. Accordion Title Background Color
    /* accordion title background */ .sqs-block-accordion .accordion-item__title-wrapper { background-color: #32a4e6; } #7. Accordion Content Background
    /* accordion content background */ .sqs-block-accordion .accordion-item__dropdown--open { background-color: #262853; color: white; } #8. Add Unordered List in Accordion Content
    First, add some text then Underline them

    Next, use this CSS
    /* Accordion Content - Add Unordered list */ span[style*="text-decoration"]:before { content: ""; display: inline-block; width: 3px; height: 3px; background-color: black; vertical-align: middle; margin-right: 3px; } span[style*="text-decoration"] { text-decoration: none !important; } #9. Accordion Titles – Add Line Break
    If you use a Business Plan or higher, you can use another approach in this comment
    /* Accordion SubTitle */ li:nth-child(1) span.accordion-item__title:after { content: "Accordion Subtitle 01"; display: block; font-size: 15px; } li:nth-child(2) span.accordion-item__title:after { content: "Accordion Subtitle 02"; display: block; font-size: 15px; } li:nth-child(3) span.accordion-item__title:after { content: "Accordion Subtitle 03"; display: block; font-size: 15px; } Result

    #10. Accordion Title-Content Text Size on Mobile only
    /* accordion title - content text size on mobile */ @media screen and (max-width:767px) { /* accordion title */ span.accordion-item__title { font-size: 12px !important; } /* accordion content */ .accordion-item__description * { font-size: 10px !important; } } #11. Simple Style 01
    Add a Code Block under Accordion >> Use this code
    <style> /* accordion title color */ .accordion-item__title-wrapper { background-color: #1a252f; color: white; padding-left: 20px !important; padding-right: 20px !important; } .accordion-item__click-target { padding-top: 15px !important; padding-bottom: 15px !important; } /* make first item round corner */ li.accordion-item:first-child .accordion-item__title-wrapper { border-top-left-radius: 10px; border-top-right-radius: 10px; } /* make last item round corner */ li.accordion-item:last-child:not[data-is-open="true"] .accordion-item__title-wrapper { border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; } /* remove divider between accordion items */ .accordion-divider { display: none; } /* accordion content padding */ .accordion-item__description { max-width: unset !important; padding: 20px !important; } /* arrows color */ .plus>div { color: white !important; } </style>
    Coming soon.
    #12. Accordion Content Link Style
    /* Links underline */ div.accordion-item__description p a { border-bottom: 1px solid black; } /* Links font style */ div.accordion-item__description p a { color: red !important; font-size: 30px; font-family: monospace; letter-spacing: 2px; } #13. Add a button inside Accordion Content
    First, you need to add a text link. Next, add this CSS to turn link to button
    /* turn accordion link to button */ div.accordion-item__description p a { background-color: black; color: white !important; padding-left: 10px; padding-right: 10px; padding-top: 15px; padding-bottom: 15px; border-color: red; border-width: 1px; border-style: solid; } #14. Add an Image inside Accordion Content
    Use this CSS to add image to top or bottom of accordion content
    /* Add an image into Accordion Content */ /* replace demo image with your image url */ /* nth-child(1) is first accordion item, nth-child(2) is second item... */ /* :before is image on top, :after if image on bottom */ li:nth-child(1) .accordion-item__description:before { content: ""; display: block; width: 100%; /* image width, you can also use px */ height: 150px; /* image height */ background-image: url(https://cdn.pixabay.com/photo/2021/09/15/15/48/seals-6627197__340.jpg); background-repeat: no-repeat; background-size: cover; margin-bottom: 20px; /* space between image-text */ } #14.2. Add Image to Accordion Content (Use JS code)
    Suppose you want to add this image 
    https://cdn.pixabay.com/photo/2023/11/28/08/53/skyscraper-8416953_1280.jpg First, you edit Accordion >> Put your cursor at position where you want to add image >> Then enter text: image01

    Next, add this code to Website Tools (under Not Linked) > Code Injection > Footer
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('div.accordion-item__description p:contains("image 01")').closest('p').addClass('image-01'); $('<img src="https://cdn.pixabay.com/photo/2023/11/28/08/53/skyscraper-8416953_1280.jpg"/>').appendTo('.image-01'); }); </script> <style> .image-01 { font-size: 0; } </style> Result

    If adding 3 images, doing this



    and use this code
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ // image 01 $('div.accordion-item__description p:contains("image01")').closest('p').addClass('image-01'); $('<img src="https://cdn.pixabay.com/photo/2023/11/28/08/53/skyscraper-8416953_1280.jpg"/>').appendTo('.image-01'); // image 02 $('div.accordion-item__description p:contains("image02")').closest('p').addClass('image-02'); $('<img src="https://cdn.pixabay.com/photo/2023/11/07/10/06/girl-8371776_1280.png"/>').appendTo('.image-02'); // image 03 $('div.accordion-item__description p:contains("image03")').closest('p').addClass('image-03'); $('<img src="https://cdn.pixabay.com/photo/2023/10/02/14/51/flowers-8289320_1280.png"/>').appendTo('.image-03'); }); </script> <style> [class*="image-0"] { font-size: 0; } </style> #14.3. Add Image to Accordion Content
    You can also use this approach
    Enter Image Url 

    highlight the text url > Add same image url (enable Open in New Window)

    then use this code to Code Injection or Page Header Code Injection
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('div.accordion-item__description p a:contains(".jpg")').each(function() { var $t = $(this); $(this).contents().filter(function(){ return this.nodeType != 1; }).remove(); $t.attr({ src: $t.attr('href') }) .removeAttr('href target'); $(this).replaceWith(function(){ return this.outerHTML.replace("<a", "<img").replace("</a", "</img") }); }); }); </script> <style> div.accordion-item__description img { width: 100%; margin-top: 10px; } </style>  
    #15. Change Plus/Minus (+/-) to custom icon
    Replace demo image urls with your icon urls
    /* Plus */ :not([data-is-open="true"]) .plus { background-image: url(https://cdn.pixabay.com/photo/2021/02/06/09/03/man-5987447__340.jpg) !important; background-size: contain; background-repeat: no-repeat; } :not([data-is-open="true"]) .plus div { display: none; } /* Minus */ [data-is-open="true"] .plus { background-image: url(https://cdn.pixabay.com/photo/2021/12/12/22/17/red-squirrel-6867105__480.jpg) !important; background-size: contain; background-repeat: no-repeat; } [data-is-open="true"] .plus div { display: none; } #16. Change style of a word on Accordion Title
    See this comment

    Wrote by @tuanphan
  18. Thanks
    geglaja reacted to paul2009 in Only 5 of 150 Pages Showing Valid in Google Search Console   
    You can set up a URL redirect to help in the meantime. This will forward visitors away from pages that don't exist (from your WP site) to active pages on your Squarespace site.
  19. Thanks
    geglaja reacted to creedon in Change text on product page pricing and "select" option   
    @Salem
    For the Sélectionnez replacement.
    Please see Replace Variant Menu "select" Text.
    For the à partir de a variation on the following solution should work. Instead of removing from I'd just change the text. I'll have to do this in just a bit here. Bump this message if I don't get back with some code in several days.
    Let us know how it goes.
  20. Thanks
    geglaja got a reaction from creedon in Change text on product page pricing and "select" option   
    Ok,  got it, thank You @creedon  Just checked the @Salem web example and I can see that he actually did it successfully.. He has from at french and english flows as expected..
×
×
  • 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.