Jump to content

melaniejaane

Circle Member
  • Posts

    80
  • Joined

  • Last visited

Reputation Activity

  1. Like
    melaniejaane reacted to tuanphan in Automatically add CSS Prefix (moz, webkit, etc.)   
    I usually use this tool, just enter your CSS in left, the tool will add prefix on right
    https://autoprefixer.github.io/

  2. Love
    melaniejaane got a reaction from Tankgurl in Reduce spacing after heading and between paragraph breaks – hard returns   
    Is there any way to reduce the spacing of a hard return after a heading? Is there also a way to reduce the size of empty space between paragraphs when you use a double hard return?
    Squarespace has implemented some super frustrating code that creates a massive space after every hard return / paragraph break. Is there anyway to turn this off, or alter the code to only apply after a double hard return, like standard word editors?
    It's seriously impacting readability in text heavy areas like Blogs or Policy pages, that need paragraph headers to outline ideas or  visually break up the content.
  3. Like
    melaniejaane reacted to GlynMusica in Core Web Vitals   
    There are loads of unused Javascript libraries that SS loads by default and which cannot be removed or optimized. This mostly affects MOBILE performance scores.
    You can use things like PRELOAD and PREFETCH DNS to make optmisations.
    As this is something that has been discussed for a good 2 years. My guess is that eventually SS will make the changes but they will only be available on new templates and you will therefore have to rebuild everything on those templates.
    Nothing you can do about that.
     
  4. Like
    melaniejaane got a reaction from Beyondspace in Lightbox Anything summary block   
    Hi @JButler I tried adding this script to footer and page code injection but doesn't seem to work. Did you add the script somewhere else or change any settings in lazy summaries to make this work? 
    Thanks 🙂 
  5. Like
    melaniejaane reacted to iamdavehart in How to jump to a secion using it's #ID on Squarespace 7.1?   
    @watts-creative I was looking for something else to fix and saw you were looking for this sort of thing, so I'll add a couple of bits here for you to think about
    Do it with Code
    I know you said you'd prefer CSS, but newsflash is that it's easy in js and harder (but potentially not impossible) in css. Here's what I'd do: write a utility script that you stick in the footer injection of your site (or a code block in the footer) which creates the anchors and positions them at the top of each section. 
    document.querySelectorAll("article>section").forEach(function(s) { const a = document.createElement("a"); a.setAttribute("id","section-link-"+s.getAttribute("data-section-id")); a.setAttribute("style", "position:absolute;top:0;left:0;z-index:-1'"); s.prepend(a); }) must be in the footer so that the sections are in the document when you run the script (or put it in the header as an event handler after the DOM content as loaded).
    Now you can just use standard links like #section-link-139408129035 to jump to each one. Add in the scroll-behavior:smooth thing referenced above to make it smooooooth.
    Do it with CSS (please don't! do it with code!)
    I strongly advise you only read on for educational purposes. this is tough. I'm mostly doing this for my own amusement and to try to understand the fluid engine implementation a bit better. OK, here's the deal. you can put your anchors in a fluid engine block, e.g. in a code block. you can also make them positioned absolute, but they will be positioned relatively to the first parent it finds that is positioned "relative". that doesn't get you very far. we've got a couple of options.
    break squarespaces positioning to let us go higher up the parent hierarchy (hacky AF!) set a negative margin on our absolutely positioned anchor to move it to the top of the section (difficult!) the assumption here is that you have a code block in your fluid engine which contains an anchor element that's been given a class of "jumplink".
    hacky AF version:
    /* this probably breaks some stuff! it gets turned off when editing */ body:not(.sqs-is-page-editing) div.content-wrapper, body:not(.sqs-is-page-editing) div[data-fluid-engine=true], body:not(.sqs-is-page-editing) .fluid-engine { position:unset !important; } /* unset your code block too! less worried about this */ body:not(.sqs-is-page-editing) .sqs-block-code { position:unset !important; } /* move your link to the top */ a.jumplink { position:absolute; top:0; } negative margin version:
    The issue here is probably what you've found already. the sections top padding and height moves around a lot as the browser changes its viewport size. This means that you've got to set your padding in relative terms, and with the same rules as Squarespace use to set section top-padding (23 of them...). You've also got to factor in that if your section's content is smaller than the minimum height of a section then you've got to use that instead. (and the first section is explictly padded again by the height of the header, which is tough to deal with, but maybe you'll let me off that bit as the first link doesn't matter so much and for that you can just use #top).
    So how the **** do we do that?! well we need to know the different paddings and minimum heights that SQS 7.1 use. I _think_ they are standardised, but either way you can check them in the site.css. they are all set using a combination of vh, vw and vmax settings. vmax is particularly interesting as it factors in orientation as well and returns the longer side of the viewport. Squarespace has separate rules depending on whether your section is padding S, M or L, and whether it is aligned top, middle or bottom. there are other rules for first section, manual sizing etc which I'm not going to deal with here, but you could.
    We find these values. it would have been super if Squarespace had these in variables cause then the rule would have been easier, but they aren't so you've got to copy all the rules and put the paddings and min-heights into variables at the section.content-wrapper level. you can then create css to set the top position to negative the padding.
    But wait!, if the section is too short you need to go to the top of the minimum height. well, to get there we need to know half the minimum height of the container and subtract half the height of the fluid engine block assuming it's vertically aligned in the middle. if it's aligned top we don't need to worry, if it's aligned bottom we need the minimum height of the container and subtract the height of the fluid engine block.
    Here we go...
    I'm only going to do the rules for a standard medium sized block, but I'll put in the different variables to take account of the three different vertical alignments. the other 20 rules you need are very similar if you really want to go down this route (HINT: don't go down this route! do it in code!)
    /* you still need to unset the position of the code block */ .sqs-block-code, .sqs-block-code .sqs-block-content { position:unset !important; } .page-section.vertical-alignment--middle:not(.content-collection):not(.gallery-section):not(.user-items-list-section):not(.editmode-changing-rowcount).section-height--medium>.content-wrapper { --dh-min-height-factor:0.5; --dh-fe-height-factor:0.5; --dh-top-padding:6.6vmax; --dh-min-height: 66vh; } .page-section.vertical-alignment--top:not(.content-collection):not(.gallery-section):not(.user-items-list-section):not(.editmode-changing-rowcount).section-height--medium>.content-wrapper { --dh-min-height-factor:0; --dh-fe-height-factor:0; --dh-top-padding:3vw; --dh-min-height: 66vh; } .page-section.vertical-alignment--bottom:not(.content-collection):not(.gallery-section):not(.user-items-list-section):not(.editmode-changing-rowcount).section-height--medium>.content-wrapper { --dh-min-height-factor:1; --dh-fe-height-factor:1; --dh-top-padding: 13.2vmax; --dh-btm-padding: 3vw; --dh-min-height: 66vh; } now that I've put in my variables, I can create a css calc at the a.jumplink level and that will fill in the variables accordingly. interestingly, Squarespace's custom css is actually a sass precompiler and it doesn't like all the possible css functions, however, you can just put this in a code block, or the header injection:
    a.jumplink { position:absolute; display:block; top: calc(-1 * max( calc( var(--dh-min-height-factor) * var(--dh-min-height) - var(--dh-fe-height-factor) * calc(100% + var(--dh-btm-padding,0px)) ) , var(--dh-top-padding)) ) } so that's
    -1 to make the top padding negative either use the distance between the fe block height and the section min height (factored in for the different height factors for vertical alignment - adding in bottom padding when required) or use the top padding, whichever is larger  
    If you got this far.... you might just have to take me on trust that it works.... it does, but you probably shouldn't do this. but I learned something and got to distract my brain for a bit...
     
  6. Like
    melaniejaane got a reaction from tuanphan in CSS not applying to summary items on Lazy Summaries   
    <!------DROPDOWN SUMMARY CONTENT------> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $(document).on("click", ".summary-item", function () { $(this).toggleClass('tp-list-des-open'); }) }) </script> <style> .summary-content:hover /*, p.sqsrte-large strong*/{ cursor: pointer; } p:empty, .summary-excerpt p, .summary-v2-block h4~* /*summary block description excluding para1 text)*/{ height: 0!important; overflow: hidden!important; /* transition: all 0.1s ease!;*/ transition: none!important; display:none!important; } .tp-list-des-open .summary-excerpt p, .tp-list-des-open~* /*summary block description excluding para1 text)*/{ height: 100%!important; /* transition: all 0.1s ease!;*/ transition: none!important; display:block!important; } .summary-title, .summary-metadata-container{pointer-events: none;} </style> <!------END DROPDOWN SUMMARY CONTENT------> Wanted to post the solution for others looking in the future.
    Thank you to Michael the The Lazy Summaries plugin creator for fixing the first couple lines of code and making this snippet work! 😄
  7. Like
    melaniejaane got a reaction from tuanphan in How to add columns to simple list for mobile view   
    @tuanphan yes thank you! Luckily I found a new tutorial showing how to do it. I've popped the code below for anyone who may be looking for this in the future. 😊

     
    @media screen and (min-width: 768px) and (max-width: 1500px) { .user-items-list-simple[data-num-columns="4"] { grid-template-columns: repeat(~"4,1fr"); grid-gap:0 3vw!important; } } @media screen and (min-width: 300px) and (max-width: 767px) { .user-items-list-simple[data-num-columns="4"] { grid-template-columns: repeat(~"2,1fr"); grid-gap:7vw 4.5vw!important; } }  
  8. Like
    melaniejaane reacted to JessicaOddi in Accessibility Issues   
    There are far too many basic accessibility issues with Squarespace, that need to be corrected with injecting custom code. Their new "integrations" for auto-focus and skip to content, is far from enough. After building a site for a client, here are some basic things I've had to implement to make it SEMI W.C.A.G. 2.1 compliant [and who are we kidding, compliance is the bare minimum for accessibility]:
    Links & Hover States: CSS for hover states on interactive elements. Inline and button links edited for padding and legibility.
    Header & Navigation: Site tagline within a content property for screen readers. Navigation link styling, Mobile fixes for better spacing and alignment.
    Footer Social Links: Original block was not screen-reader accessible using VoiceOver and TalkBack. Custom HTML block replacement for better descriptions, and sizing.
    Newsletter, Search & Forms: Field style edits for better visibility. Error box edited for better contrast. Replacing red with the redwood brown and ivory moon text.
    Squarespace Pages: Custom CSS and coding to fix internal pages. Including search results, 301 password protected pages, and blog and shop features. (As much as possible.)
    And that's just a brief overview. The fact that we can't even add a compliant hover state, is ridiculous. I had to build out an entirely custom social footer link block just because it doesn't read out the social platform the icon goes to. For example, Patreon doesn't have an icon, so it uses the link icon. Which screen readers call out "link". That's it.
    Adding custom CSS/development code is not best practice, and causes clunky loading. Who can we get in touch with to improve Squarespace accessibility?
  9. Love
    melaniejaane reacted to LisaLenkens in Sticky Scroll Split screen in fluid engine   
    Found the solution!!! 

    Here is my piece of code to make split screen scrolling in fluid engine + normal in editor mode. See full tutorial on https://lisalenkens.com/split-scroll-screen-sticky-column/
    Hope it will help someone else as well!
    @media only screen and (min-width: 700px) { .page-section:nth-child(2) { display: flex; flex-direction: row; } .page-section:nth-child(2) div:nth-child(2) { position: sticky !important; top: 80px !important; } .page-section:nth-child(2) .is-editing div:nth-child(2) { position: absolute !important; top: 0px !important; } }  
  10. Like
    melaniejaane got a reaction from tuanphan in Turn Blog or Summary Block Excerpt into Dropdown / Accordion for Directory   
    Thanks @tuanphan I ended up going back through all my blog posts and changing the bold text to H4 so I it was easier to target. Then tried some new code, managed to fix it. Thanks so much for you help! 🙂 
  11. Love
    melaniejaane reacted to tuanphan in Turn Blog or Summary Block Excerpt into Dropdown / Accordion for Directory   
    Add Summary Post with Excerpt Add Click Me text (use Heading 4) to top of Excerpt Next, add this code to Page Header <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-item').each(function(i, e) { $('h4').click(function() { $(this).toggleClass('tp-list-des-open'); }); }) }); </script> <style> .summary-v2-block h4~* { height: 0; overflow: hidden; transition: all 0.1s ease; } .tp-list-des-open~* { height: 100%; transition: all 0.1s ease; } .summary-title-link {pointer-events: none;} </style> Explain Script code: when clicking h4 in Excerpt >> Toggle a class name: tp-list-des-open style code (first code): make excerpt invisible by setting height 0 style code (second code): make excerpt appear by increasing height to 100% (= height of summary item) style code (third code): disable title click  
  12. Like
    melaniejaane reacted to paul2009 in Is there a way to add a non-breaking space to a text block?   
    You can use the standard keyboard shortcut to add a non-breaking space within a Text Block.
    On a Mac this is Option+Spacebar. On a Windows computer, I believe it's usually Ctrl+Shift+Spacebar.
  13. Like
    melaniejaane reacted to tuanphan in Disable click thru link on summary block 7.1   
    This will disable all summary on your site. If you want to apply on one page, add this code to Page Header
    <style> .summary-thumbnail-container { pointer-events: none !important; } </style>  
  14. Like
    melaniejaane reacted to tuanphan in Auto List Carousel Section Image link   
    Add to Design > Custom CSS
    /* List Section - Make list images clickable - @tuanphan */ body.homepage li.list-item { position: relative; } body.homepage .list-item-content__button-container { position: static; } body.homepage a.list-item-content__button.sqs-block-button-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; color: transparent !important; background-color: transparent !important; border: none !important; }  
  15. Like
    melaniejaane reacted to tuanphan in Make button (read bio) in people / list section link to either a lightbox text or a dropdown text   
    Hi,
    How about this? I helped a member recently.
    https://thung.squarespace.com/list-section-accordion?noredirect
    Pass: abc
    Before

    After clicking title/image

  16. Like
    melaniejaane reacted to Spence500 in Make images clickable in the carousel   
    Hi there, I'm curious as to how I would go about creating clickthrough URL's on the individual cards I created in Figma. I'm utilizing an image content section that is designed as a carousel and I uploaded hard designed/flattened "cards" as images in the carousel. I want to make each card it's own clickthrough link to that companies website. I have the option of creating buttons as clickthrough's that live beneath the cards, but I want the clickthrough to live directly on the individual card/image components themselves. Anyone have an idea on how to do this?  (I'm proficient in coding so feel free to drop some ideas when it comes to DOM manipulation).
     

  17. Love
    melaniejaane reacted to jpeter in Form Block: Conditional Logic For "Other, Please Specify."   
    @shiDMV The javascript code below should work for you. 

    Javascript
    (function(){ // The value of the "id" HTML attribute of the parent HTML element var PARENT_ID = 'select-61719a1c-6980-4b16-b86c-5a7ccff1e8e5-field'; // The value which will determine the visibility of the DEPENDENT_ID element var PARENT_VALUE = 'Other'; // The value of the "id" HTML attribute of the child HTML element. // This field will hide/show depending on the PARENT_VALUE var DEPENDENT_ID = 'text-48e31159-ed89-4857-9813-092474be4290'; /********************************************************************* * DO NOT ALTER BELOW THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING *********************************************************************/ // Initialize after the page has been loaded if (document.readyState === 'complete') { init(); } else { document.addEventListener("DOMContentLoaded", init, false); } function init() { // Load jQuery if not loaded if(!window.jQuery) { return loadJquery(init) } // Assign jQuery to a variable var $ = jQuery; // Get the parent element var $parentField = $('#' + PARENT_ID); // Get the dependent element var $dependentField = $('#'+ DEPENDENT_ID); // Hide the text field on page load $dependentField.hide(); // Show or hide the dependent field based on the PARENT_VALUE $parentField.on('change', function(evt){ if(evt.currentTarget.value == PARENT_VALUE ) { $dependentField.slideDown(); } else { $dependentField.slideUp(); } }); } function loadJquery(init) { var s = document.createElement('script'); s.src = 'https://code.jquery.com/jquery-3.6.0.min.js'; s.integrity = 'sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4='; s.crossorigin = 'anonymous'; s.onload = init; document.body.appendChild(s); }; })() Make sure to place this between <script> tags. For example:
    <script> // Place JS Code Here </script>  
    QF6rBF69qS.mp4
  18. Like
    melaniejaane reacted to shiDMV in Form Block: Conditional Logic For "Other, Please Specify."   
    Site URL: https://www.mmclassy.com/contact-us
    Hello wonderful people!
    I am currently trying to apply conditional logic to the "Event Type" select field on my form. I'd like the "Other, please specify" text field to be shown only if the "Other" option is selected. I assume this is possible because I've seen it done with the checkbox field in a video from 2019. Unfortunately I was not able to adapt this code to the select field.
    Does anyone know how to implement this feature?
  19. Like
    melaniejaane reacted to cwilk180 in Vertical side tabs 7.1   
    Site URL: https://www.mahacreative.co.nz/
    Hi,
     
    I'm trying to have a tab like style side nav similar to this - would anyone know how to do this?
     
    I found this Code pen for something similar but I'm not sure how or where to add it https://codepen.io/skkhan/pen/MWWdXbb
  20. Like
    melaniejaane reacted to tuanphan in Vertical side tabs 7.1   
    Edit this code
    <div class="detail active"> <img src="https://static1.squarespace.com/static/5fd5fd7bc704802ff553283e/t/607efb61e262694be0d3d65f/1618934625616/CredibilityIcon.png" alt="discovery phase photo" width="25%"> <h2>Meet &amp; Greet</h2> <p>Are we right for each other? </p> </div> to this
    <div class="detail active"> <img src="https://static1.squarespace.com/static/5fd5fd7bc704802ff553283e/t/607efb61e262694be0d3d65f/1618934625616/CredibilityIcon.png" alt="discovery phase photo" width="25%"> <div class="detail_text"> <h2>Meet &amp; Greet</h2> <p>Are we right for each other? </p> </div></div> Next, add this to Design > Custom CSS
    /* vertical tab text image */ @media screen and (min-width:992px) { div.detail img {float: left;} div.detail .detail_text { float: left; margin-left: 20px; } div.detail .detail_text h2 { margin-top: -10px; margin-bottom: 0; }}  
  21. Like
    melaniejaane reacted to deaton72 in Filtering in 7.1   
    Hello
    I am working on a project page for a design firm in 7.1 The PLAN was to make a project gallery and then use the Universal Filter (https://www.squarewebsites.org/products/universal-filter)  to filter projects by type/service/etc... and do so via TAGS and CATEGORIES
    The user would filter, then clock on the image and then it would link to a project page. An example is here (https://corn-apricot-zn88.squarespace.com/gallery). If you click on the first image (fire station) you see what we want visually.  But we NEED them to filter! 
    Now I see that the only place to add tags is in BLOG posts, not in portfolio/gallery pages or gallery block (I have re-added the gallery block to our 7.1)  We do not want all the info with the blogs showing in either the summary or project page, we just want photos with a rollover.
    The Filters says "Universal Filter plugin works with any Squarespace List Collections: Blog, Products, Gallery, Events, Album or Custom Post Types. Also, it works with Blocks which capable to show List Collections: Summary Block, Gallery Block. Some templates has Index of Galleries structure - this also may be used with Filter."
    But I cannot see where to add categories/tags in anything except blog posts to make this work. 
    Is there a way to add TAGS to the portfolio or gallery blocks? Or is there a workaround with make the summary blog block work without all the text? 
     
    Thanks
  22. Like
    melaniejaane reacted to knockout in Insert Code Block/HTML in Auto-Layout Simple List   
    Placing HTML in the list item's description doesn't actually display the code. Seems this will require custom code injection. Anyone know how to insert custom HTML below the description in an auto-layout simple list?
  23. Like
    melaniejaane reacted to caqtec in List Item Button into a dropdown info   
    Hello,
    I was wondering if it was possible to have list item buttons to be clickable to show additional information on the same page, like an accordion? I currently have the teams page set up like this as a "List" and want to be able to click on the photo/name/position and a drop down of their contact info will show up.

  24. Like
    melaniejaane reacted to jac.cunningham in Squarespace Scheduling - create client account - end of journey   
    Is there any way for a Customer/Client to create an account BEFORE they schedule an appointment for the first time?  It just seems weird that it is at the end of the Customer Journey. We wish to encourage our clients to have an account so they can manage multiple appointments.  
    It means that we have to write a process 'after the fact' and they then have another step to do after clicking their way through the scheduling options, which in itself is tedious.
     
    Anyhow just asking if anyone else has this issue in their "Customer Journey flow".
     
    Also is there any way to reconfigure the Redeem Coupon Button? It is part of the Scheduling Page items which are defaulted in the view. I know I can change the texts.
    Thanks Jac
  25. Like
    melaniejaane reacted to creedon in Remove weird site overflow   
    I don't have a solution but do have a clue. The AddThis appears to be adding the extra space. When I disabled it locally the issue went away.
×
×
  • 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.