Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

brandon

Circle Member
  • Content Count

    2,212
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by brandon

  1. Hi there. Give this a try. @media only screen and (max-width: 640px) { #page-56fd63b662cd94b482c67b26 .row .row:nth-child(even) { display: table; } #page-56fd63b662cd94b482c67b26 .row .row:nth-child(even) .col:first-child { display: table-footer-group; } } Using Flexbox may be the more standard way to reflow the visual presentation of the document, but using it here causes additional complications, and doesn't have as broad compatibility as display:table. Let me know how it works for ya. -Brandon
  2. UPDATE DEC. 23, 2018: Hi everyone. The original answer (included below) is old and out of date. Don't use it. It's easy to get a fixed header with CSS, but hard to ensure it looks right on all devices and contexts. If you need more than the basic CSS, use Fixit, a 'plugin' I created that is much more reliable and up-to-date. A LOT of people have asked for help with this over the years. There are a lot of different things to consider when fixing nav/headers, and this answer didn't address every possible variation. So the answer needed continued modification. So I finally spent a few weeks to
  3. Hi there. This can be done like this. Remove any previous code you added. Then, add the following code via the CSS Editor: .websiteFrame { position: fixed; z-index: 990; background-color: rgba(198, 250, 229, 1); } #websiteFrameTop { top: 0; left: 0; width: 100%; height: 10px; } #websiteFrameRight { top: 0; bottom: 0; right: 0; width: 10px; } #websiteFrameBottom { bottom: 0; left: 0; width: 100%; height: 10px; } #websiteFrameLeft { top: 0; bottom: 0; left: 0; width: 10px; } Then add the following code via Code Injection, to the
  4. Cool. I'll try to take a look at the other question soon. Do keep in mind, people here may be more likely to help if they see that you take the time mark answers as 'accepted' if in fact they are the right answer for you.
  5. I edited the code in my second answer. It's much simpler now (assuming that you removed the previous code). Regarding your comment about the aspect ratio of the images: capping the max-width does not affect the rendering of the images, or their aspect ratio. If you remove the code and expand and contract the width of your browser from very wide to very thin, you'll see that those images change aspect ratio throughout the entire range. That is how that particular template is designed. Capping the max-width simply stops that scaling at a certain point, once that max-width is reached.
  6. New answer for you: The following code will limit the width of the entire website on the York template. It also prevents the height of other elements within the website from growing. /*Prevent York Template from expanding infinitely in height/width*/ /*Limit width of entire site.*/ #site { max-width: 1400px; /*Adjust as desired.*/ margin-right: auto; margin-left: auto; } /*Prevent header growing in height infinitely.*/ #header { margin-top: 5%; } -Brandon If this or any other answer helps you out, please give credit where credit is due and Accept and/or Up-Vote that ans
  7. @joshuar87 Great. If you wouldn't mind marking my answer as accepted, that'd be appreciated.
  8. Hi Matt. It's always a good idea to check the style editor to see if you can adjust the setting from there. It sounds like you've done that. In which case, you can try inserting this CSS into the CSS editor. #page { max-width: 980px; /*Adjust this number as desired.*/ } -Brandon If this or any other answer helps you out, please give credit where credit is due and Accept and/or Up-Vote that answer. If it didn't help, feel free to inquire further or wait and see what others have to say. Code is provided without any warranty, expressed or implied.
  9. Hi all. This works for me: {## <p>This code won't appear.</p> <p>Neither will this.</p> {website.id} <!--This won't show either.--> Nothing in here will render. ##} EDIT: Squarespace has published the 'comment directive': {# This is a single line comment} {##BEGIN} This is a longer, mulitline comment {##END} But this also works for me, as does my initial example: {##} This is a longer, mulitline comment {##} -Brandon If this or any other answer helps you out, please give credit where credit is due and Accept and/or U
  10. Update 10/24/2019: Add this via the CSS Editor, save and refresh: /* Add this first bit to get more flexibility in height. */ .sqs-layout.sqs-editing .sqs-block, .sqs-block-spacer-content { min-height: 0px !important; } .sqs-block-spacer .sqs-block-content { height: 0; } /* Add this second bit too if you want to be able to go to zero. */ .sqs-block-spacer { padding-top: 0 !important; padding-bottom: 0 !important; } If a response helped you out, show some love by 'Like' (bottom-right) and/or 'Upvote' (top-left).
  11. Yes, here is a suggestion. First, check your style editor and be sure that there is not simply an option there to disable the 'fixed' header. If you don't see an option in your style editor, you can use the following CSS inserted into the CSS Editor: .header-announcement-wrapper { position: static; } #page { margin-top: 0 !important; } Remember, the CSS Editor and the Style Editor are different editors. The style editor is where you have simple options to change the template. The CSS editor allows you to insert code. -Brandon
  12. @michaelhull Hi. This should be do-able. The following CSS restyles the default next/previous arrows. Insert this using the style editor. .sqs-gallery-controls { background-color: white; padding-top: 25px } .sqs-gallery-controls .previous, .sqs-gallery-controls .next { background-color: transparent; margin-top: 0; padding: 0 !important; line-height: inherit; position: static; } .sqs-gallery-controls .previous:hover, .sqs-gallery-controls .next:hover { background-color: transparent; } .sqs-gallery-controls .previous::before, .sqs-gallery-controls .next::before { col
  13. Another thing that may help you is Express Checkout. As you experiment with making Squarespace commerce fit into your user flow, you may find that enabling it makes one less step for users. https://support.squarespace.com/hc/en-us/articles/206540817-Express-Checkout And finally, maybe what you need is not a product with a form on it, but a form that is filled out at "checkout". This is also an option: https://support.squarespace.com/hc/en-us/articles/206540907-Creating-a-custom-checkout-form
  14. Hi there. The answer is that, in Squarespace, you wouldn't add a payment option to the form, but rather it'd be the other way around. You add a form to a product. See the following link about Service Products. https://support.squarespace.com/hc/en-us/articles/206540867 You'll see near the bottom of that page it mentions adding a form...that's the ticket! That's the direction you want to go. If this answer is helpful, consider marking it as accepted. Or feel free to inquire further. -Brandon
  15. Hello @wlinard: You can use this CSS, inserted via the CSS Editor to invert the color of the image on the home page only. Do keep in mind that this only works on the latest browsers. Older browsers don't support it. .homepage .Header-branding-logo { -webkit-filter: invert(100%); filter: invert(100%); filter:progid:DXImageTransform.Microsoft.BasicImage(invert='1'); } If you need to support older browsers, you're going to need a combination of solutions (see comments at bottom). Also, keep in mind that if Squarespace ever changes the code on your template, this code that I've provide
  16. Hi @michaelhull FYI: I posted an answer, but it's apparently awaiting moderator approval before it's visible. I don't know what priority SS puts on this moderation process. If you don't see the answer after awhile, you might have to bug them.
  17. Thank you for taking the time to post this. When this is a problem for me in the future, I will be coming back to this.
  18. Thanks neeklamy; that's good info. Unfortunately none of these are do-able by a client who doesn't write code. However, I may be able to use this in other circumstances, so thanks again.
  19. This is one of those things I can see SS overlooking and thinking "eh, who's really going to notice and, if they do, will they care?". That's a reasonable conclusion and one I would have shared. But having had people test various SS sites I will say this: it gets noticed, and it registers to people as a mistake and/or unprofessional. SS: if there is any way to fix this in the future, please do.
×
×
  • Create New...