ChromaticZero
-
Posts
55 -
Joined
-
Last visited
Reputation Activity
-
ChromaticZero got a reaction from toto224 in Help a newbie: cleanest way to redesign client site / create staging site without breaking stuff or wasting time?
Hey guys,
Have any of you looked into the Development Platform for SquareSpace? It's where I do my changes locally before publishing to the live site. It also allows you to test structural changes to the underlying template. I would recommend you start here. https://developers.squarespace.com
-
ChromaticZero got a reaction from songbird in How can I make form checkboxes checked by default?
Try this instead ?
<script> $(document).ready(function() { $('input[name="checkbox-yui_3_17_2_1_1588700112150_14382-field"]').prop("checked", true); }); </script> -
ChromaticZero got a reaction from songbird in How can I make form checkboxes checked by default?
You could do this with javascript when the page is loaded. You'd have to add this script to your code injection:
<script> $(document).ready(function() { $('input[name="checkbox-yui_3_17_2_1_1588700112150_14382-field"]').setAttribute("checked", "checked"); }); </script> I think that should work. Oddly, all three of your checkboxes have the same encoded name... doesn't seem right.
Anyway, give that a try and let me know if it doesn't work.
-
ChromaticZero got a reaction from tuanphan in Horizontally scrolling text on announcement bar
What do you mean by 'change the font'?
The font of your announcement bar should be dictated by your template settings. I suppose if you want to override it with code you could do so here but that depends on what you mean by 'change the font'.
.bounce p { font-family: 'Montserrat'; color: #101010; font-weight: 600; ... }
-
ChromaticZero got a reaction from PJ22 in Horizontally scrolling text on announcement bar
What do you mean by 'change the font'?
The font of your announcement bar should be dictated by your template settings. I suppose if you want to override it with code you could do so here but that depends on what you mean by 'change the font'.
.bounce p { font-family: 'Montserrat'; color: #101010; font-weight: 600; ... }
-
ChromaticZero got a reaction from PJ22 in Horizontally scrolling text on announcement bar
Sounds like you want a marquee effect. Have a poke around Google for CSS Marquee examples. Just be sure to do it in CSS as the HTML marquee tag has been deprecated.
A quick search will find something like this as an example:
.marquee { width: 450px; margin: 0 auto; white-space: nowrap; overflow: hidden; box-sizing: border-box; } .marquee span { display: inline-block; padding-left: 100%; will-change: transform; /* show the marquee just outside the paragraph */ animation: marquee 15s linear infinite; } .marquee span:hover { animation-play-state: paused } /* Make it move */ @keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } } /* Respect user preferences about animations */ @media (prefers-reduced-motion: reduce) { .marquee { white-space: normal } .marquee span { animation: none; padding-left: 0; } } <p class="marquee"> <span> Windows 8 and Windows RT are focused on your life—your friends and family, your apps, and your stuff. With new things like the Start screen, charms and a Microsoft account, you can spend less time searching and more time doing. </span> </p>