Hi Everyone,
I am stuck on the Module 8 Assessment within the “Answers Advanced” track. No matter what I do, I keep receiving an “X” for the “Add the font embed code to the head of the layouts > headincludes.hbs file” part of the challenge. Here is the screenshot of my code editor:
I’m either missing something obvious or encountering a bug here. Looking forward to identifying my issue and completing this module.
Thanks,
Michael
Hey Michael! Make sure you’re copying the font embed code exactly from the instructions. From your screenshot it looks like you’ve combined both font families into the same URL, which won’t work here.
It should look like this:
<link href="https://fonts.googleapis.com/css2?family=Pangolin&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
Give that a try, commit your changes, and resubmit. Let us know if you have any other questions!
Thanks Katja! Your suggestion worked! Turns out those ‘rel=“preconnect”’ lines were unnecessary (in addition to your recommendation that I create 2 separate lines for each font embed code.
I was stuck on this assessment for longer than I’d like to admit ! Thanks again for helping me out!
1 Like