Jump to content

Summit227

Member
  • Posts

    20
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Add to Design > Custom CSS
    /* Mobile resize slideshow */ @media screen and (max-width:991px) { .gallery-fullscreen-slideshow { height: 35vh !important; } }  
  2. Like
    Summit227 reacted to Beyondspace in CSS for Mobile Font Size without changing desktop   
    You miss close tag } here

    It should be ... font-family: 'Raleway' !important; }
    Then the next is my code
  3. Like
    Summit227 reacted to StacyD in Help with Slideshow Gallery for mobile   
    Hi,
    Yes. I think I fixed it now. I made some tweaks to the photos, and put in some custom code and I think it looks alright now on mobile. Appreciate your response and if you have any feedback! Thank you~
  4. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    I see you solved with this CSS code?
    @media only screen and (max-width: 640px) { #new-page-1 img { display:none } #new-page-1 .sqs-block-image img { display: block } #new-page-1 { background: url('https://images.squarespace-cdn.com/content/v1/56b6af2cb654f92cc30c8913/4dec8924-ba56-4f14-a98f-ea0dc169cc09/banner+BOOK.png?format=1500w'); background-repeat: no-repeat; background-size: 100% } }  
    I remember I answered this, maybe on forum or email. You try checking it again.
    Which image are you referring to?
  5. Like
    Summit227 reacted to jaydiprewa in Need help adjusting navigation drop-down menu - CSS code to left-justify text and fix container   
    .header .header-layout-nav-right .header-nav .header-nav-item--folder .header-nav-folder-content {
        left: 0 !important;
        right: auto !important;
        text-align: left !important;
    }
  6. Like
    Summit227 reacted to creedon in Using people in pictures: yea or nay?   
    I find that a lot of sites seem to use what appear to me to be stock images of people that are supposedly enthralled with the product or service. It just comes off as cheap, insincere, and is a turn off for me. 
    Getting quality and genuine images is an art and takes a good photographer to capture the essence.
    I suggest staying away from people images unless they are high quality and custom.
  7. Like
    Summit227 reacted to tuanphan in [Share] Accordion Block: Useful code   
    Can you share link to page where you use accordion + which code did you use?
    --
    Also, I sent you an email on this.
  8. Like
    Summit227 reacted to tuanphan in Help with Slideshow Gallery for mobile   
    Add to Design > Custom CSS
    @media screen and (max-width:767px) { .user-items-list-item-container[data-section-id="62ac7fc3383fd135b9d51f8c"] ul { min-height: unset !important; } }  
  9. Like
    Summit227 reacted to DevonHarris in [Share] Accordion Block: Useful code   
    @creedon this is amazing!!  Thank you so much! 
  10. Like
    Summit227 reacted to creedon in [Share] Accordion Block: Useful code   
    Please see Accordion Block Top Bottom Border Hide.
    Let us know how it goes.
  11. Like
    Summit227 reacted to tuanphan in Help with Slideshow Gallery for mobile   
    Add to Design > Custom CSS
    body.view-item .product-price { display: none; }  
  12. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Don't remove any code in your current code
    Add this to Design > Custom CSS
    @media screen and (max-width:767px) { section#hero-banner { min-height: unset !important; height: 180px; } }  
  13. Like
    Summit227 reacted to creedon in [Share] Accordion Block: Useful code   
    Not easily if at all. Let me explain. I tried just simply rotating a accordion block. It rotated and seemed to function as far as toggling open/close state. That means the code that drives that part of the effect wasn't broken. What was broken was all the spacing and smooth open/close effect.
    Here we see a normal accordion block.

    Now here is that block rotated.

    accordion rotate.mp4 As you can see it doesn't function properly visually. I assume that is because the visual effect elements were designed to function in the vertical plane not horizontally.
    Could the visual effect part of the accordion block be altered to function horizontally? Perhaps.
    But with all the fiddling about you may be better off finding a piece of code that was designed to work how you want from the beginning. If you did go with altering an accordion block there is a good chance it would break when SS made changes to the structure of the block.
  14. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Add to Settings > Advancd > code Injection > Header
    <style> @media screen and (max-width:767px) { [data-section-id="61c804f61469db271b941995"] { min-height: unset !important; height: 45vh; } } </style>  
  15. Like
    Summit227 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
  16. Like
    Summit227 reacted to paul2009 in Having trouble getting small & clear resolution of my client's logo   
    If the image is larger than 1500 pixels wide, resize it to 1500px and save as a .png file that is less than 500KB in size. Add the image file and then resize it using the Site Styles panel. For more information see Adding a site logo.
    If you have difficulties after this, please provide us with a working link to the site so that we can see the issue first-hand. If your site isn't live yet, please set a site password and tell us what it is. Without this, trial sites are hidden from view.
     
     
  17. Haha
    Summit227 reacted to tuanphan in Help with Slideshow Gallery for mobile   
    What is site url?
  18. Like
    Summit227 reacted to Charley14 in Banner Image Won't Resize for Mobile View   
    Hi Tuanphan. Just to let you know I figured this issue out. Thank you
  19. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Try adding to Design > Custom CSS
    /* resize mobile homepage */ @media screen and (max-width:767px) { section#seclusion-words figure img { width: 100% !important; left: 0 !important; top: 0 !important; height: auto !important; } section#seclusion-words { min-height: unset !important; height: 250px !important; } section#seclusion-words .spacer-block { display: none !important; } section#seclusion-words .image-block { width: 50%; margin: 0 auto; } section#seclusion-words h2 { font-size: 20px; position: relative; top: -30px; } }  
  20. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Add to Design > Custom CSS
    /* resize mobile home top banner image */ @media screen and (max-width:767px) { [data-section-id="619859d198dc455c9635f22f"] { min-height: unset !important; height: 40vh; margin-top: 15vh; } }  
  21. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Add to Design > Custom CSS
    /* resize mobile top image */ @media screen and (max-width:640px) { body.homepage .Parallax-item:first-child img { width: 100% !important; height: auto !important; left: 0 !important; top: 0 !important; } }
  22. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Hi,
    Can you share all links where you have problem with banner. We will check & give the code
    Hi. You can setup password & share url
  23. Like
    Summit227 reacted to tuanphan in How to change the navigation text color on one page only in Montauk?   
    Montauk uses this code
    <style> div#topNav * { color: blue !important; } </style>  
  24. Like
    Summit227 reacted to tuanphan in Help with Slideshow Gallery for mobile   
    Just sent answer
  25. Like
    Summit227 reacted to tuanphan in Banner Image Won't Resize for Mobile View   
    Hi. Remove code you added & let me know. I will check again & give new code
×
×
  • 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.