Jump to content

Blog: Changing "Read more" to another language, avoiding cutting of long words and changing date format

Recommended Posts

Site URL: https://tulip-grasshopper-g8dw.squarespace.com/grontvattat

Hi!

I've tried different solutions found in this forum with no success, so here it goes:
https://tulip-grasshopper-g8dw.squarespace.com/grontvattat (password Greenery2021)


This blog is in Swedish, and I have three difficulties:
1) I can't seem to change the "Read more" link to Swedish. I've tried changing to Sweden in settings, which didn't do anything. Which code should I put in the CSS to change this?

2) Also, is there a way to stop the headlines from cutting long words? Perhaps an automatic scaling of headline size to avoid this? 
(Example in the second blogpost from the top: "Fick nog – nu avslöjar hon greenwashingkampanjerna" where the last word is getting chopped in two)

3) I have no luck changing the date format to a Swedish one. I would like either in Swedish (for example 15 februari 2021) or day/month-year like this: 15/2-2021. Last option is yearmonthday, like this: 210215
How do I change this?


 

Link to comment
  • Replies 6
  • Views 331
  • Created
  • Last Reply
5 hours ago, MariaSL said:

Site URL: https://tulip-grasshopper-g8dw.squarespace.com/grontvattat

Hi!

I've tried different solutions found in this forum with no success, so here it goes:
https://tulip-grasshopper-g8dw.squarespace.com/grontvattat (password Greenery2021)


This blog is in Swedish, and I have three difficulties:
1) I can't seem to change the "Read more" link to Swedish. I've tried changing to Sweden in settings, which didn't do anything. Which code should I put in the CSS to change this?

2) Also, is there a way to stop the headlines from cutting long words? Perhaps an automatic scaling of headline size to avoid this? 
(Example in the second blogpost from the top: "Fick nog – nu avslöjar hon greenwashingkampanjerna" where the last word is getting chopped in two)

3) I have no luck changing the date format to a Swedish one. I would like either in Swedish (for example 15 februari 2021) or day/month-year like this: 15/2-2021. Last option is yearmonthday, like this: 210215
How do I change this?


 

Hi , You can't do 1 & 3 with Css you have to use Javascript for this. but for 2 you can use the following code in Design >Custom Css

.blog-side-by-side .blog-title {
    word-break: keep-all !important ;
    color: #000 !important;
    display: grid !important;
}
@media screen and (min-width: 1272px){
.blog-side-by-side .blog-title {
    font-size: calc(4.1 * 1rem) !important;
}
}

 

Link to comment
1 hour ago, humxahafeex said:

Hi , You can't do 1 & 3 with Css you have to use Javascript for this. but for 2 you can use the following code in Design >Custom Css


h1, h2, h3, p {
  hyphens: none;
}

 

Hi! Thanks! Nothing happened though, the word "greenwashingkampanjerna" is still split in two, se screenshot. 

How do I go about fixing the 1 & 3 with Javascript?

Skärmavbild 2021-02-15 kl. 14.42.00.png

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.