-
Posts
15 -
Joined
-
Last visited
Reputation Activity
-
CalvinEK got a reaction from tuanphan in How to remove the underline of linked contents?
Thank you, Paul. This worked wonderfully (as I'm sure you knew it would)!
-
CalvinEK got a reaction from paul2009 in How to remove the underline of linked contents?
Thank you, Paul. This worked wonderfully (as I'm sure you knew it would)!
-
CalvinEK got a reaction from Beyondspace in Spotify embed cut on mobile
Yes, this works. Thank you very much @bangank36!
-
CalvinEK reacted to Beyondspace in Spotify embed cut on mobile
It seems that we need to set style in general, not specific element. Kindly remove all my previous codes and add the following one
@media only screen and (max-width: 767px) { .embed-block .embed-block-wrapper.embed-block-provider-Spotify > iframe { height: unset !important; } .embed-block + div { margin-top: 20px !important; } } Let me know how my new codes work on your site
Hope it helps you
-
CalvinEK got a reaction from Beyondspace in Spotify embed cut on mobile
It works beautifully! Thank you very much!
-
CalvinEK reacted to Beyondspace in Spotify embed cut on mobile
Try adding to Home > Design > Custom Css
@media only screen and (max-width: 767px) { #block-yui_3_17_2_1_1637351429136_2825 .embed-block-wrapper iframe { height: unset; } #block-yui_3_17_2_1_1637351524693_2665 { margin-top: 30px; } } Let me know how it works on you site
Press 👍 or mark this answer as solution to help another one too
-
CalvinEK reacted to tuanphan in Newsletter block placeholder text
Add to Code Injection > Footer
<script> if (document.querySelector("div#block-7a0e9e4add2a3b74e014")) { document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='E-post'; } </script>
-
CalvinEK got a reaction from tuanphan in Customize "Read more", date formats and form labels
And finally, I found this forum entry, which solved the form labels issue:
-
CalvinEK got a reaction from Beyondspace in Customize "Read more", date formats and form labels
Found this forum entry, which solved the "Read more" issue:
-
CalvinEK got a reaction from Beyondspace in Customize "Read more", date formats and form labels
And finally, I found this forum entry, which solved the form labels issue:
-
CalvinEK reacted to tuanphan in How to translate first name and last name in contact form
Add to Home > Design > Custom CSS
/* First name */ .field.first-name .caption-text { visibility: hidden; } .field.first-name .caption-text:before { visibility: visible; content: "Voornaam"; } /* last name */ .field.last-name .caption-text { visibility: hidden; } .field.last-name .caption-text:before { visibility: visible; content: "Achternaam"; }
-
CalvinEK reacted to Beyondspace in Date display format options
There are at least 3 styles of format date on the same site!
Please add this snippet into Settings->Advanced->Code Injection to format the date the way you like it
<!-- Fix inconsistent blog date format on Squarespace 7.1 template --> <!-- Squarespace Forum 03-08-2021 --> <script src="https://stevenlevithan.com/assets/misc/date.format.js"></script> <script> document.addEventListener('DOMContentLoaded', function() { var dateformat = "mm-dd-yyyy"; var pubdate = document.querySelectorAll("time[datetime]:not([class*=event-time]), time[pubdate], time.blog-meta-item--date"); for (var i = 0; i < pubdate.length; i++) { var d = new Date(pubdate[i].getAttribute("datetime") || pubdate[i].innerText); if ( pubdate[i].classList.contains('blog-meta-item--date') ) { d = new Date(document.querySelector('[itemprop="datePublished"]').getAttribute("content").split("T")[0]).getAttribute("content"); } pubdate[i].innerHTML = d.format(dateformat); } }); </script> The variable dateformat currently set with "mm-dd-yyyy", but you can change to different format (reference here)
These are some more format that supported:
"mm-dd-yyyy" --> 02-25-2021
"dd-mm-yyyy" --> 25-02-2021
"mm/dd/yyyy" --> 02/25/2021
"mmm dd yyyy" --> Feb/25/2021