Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Italics Not Rendering

Started by Muut Archive 10 years ago · 4 replies · 538 views
10 years ago

Here's an odd one ... I'm using the Learn2 theme, but all italics on the site do not render (translate from Markdown into HTML).

Suggestions?

10 years ago

How are are you doing the italics? Do the italics render as <i></i> in the output? What font are you using?

10 years ago

Creating them in the Admin area ... italics

10 years ago

I found this remembering that I had figured it out once before but forgot how! The italic versions of the fonts aren't being called by the CSS. I submitted an issue here, but it comes down to this -- change this line in user/themes/learn2/scss/theme/_fonts.scss:

@import url(//fonts.googleapis.com/css?family=
Montserrat:400|Muli:300,400|Inconsolata);

to

@import url(//fonts.googleapis.com/css?family=
Montserrat:400|Muli:300,300italic,400,400italic|Inconsolata);

and then run the scss.sh script at the top of the learn2 theme for it to process the change. You can kill it off once it's done its business, unless you plan on making more SCSS changes. (I think that's how SCSS is supposed to work -- it's all new to me.)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1361 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2958 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago