Error in Advanced answers module 8

Iam getting an error “Add the font embed code to the head of the partials>layout.html.hbs file”. Though I edited the “layouts > headincludes.hbs” file.

Thanks
Deepthi

1 Like

Hi @ayyalasomayajula_dee. Taking a look at your challenge account, it appears you placed the embed code into the wrong file. Please make sure to edit the layouts > headincludes.hbs file as pictured below:

Let us know if you run into any other issues here.

Sam

1 Like

@Sam_Torres funny thing, I am not getting the error described by @ayyalasomayajula_dee but rather with the second task “Add font family in answers.scss file”. I have followed the instructions to a T. Added the fonts as described to static/scss/answers.scss and successfully built the staging site. See code added below. Could someone check my account? I feel its a glitch.

.yxt-Card,
.HitchhikerFaqAccordion-title,
.yxt-Results-title,
.yxt-Results-viewAllLink,
.yxt-Results-changeFilters,
.yxt-Results-filterValue

{

font-family: 'Pangolin', 'Open Sans', sans-serif;

}

.yxt-AutoComplete-option--item,
.yxt-SearchBar-input

{

font-family: 'Roboto Mono', 'Open Sans', sans-serif;

}

Also this validation message is incorrect the file is not located in Partials it is in layouts

Hi Andrai,

Looking at your code editor, there seem to be some syntax errors with extra spaces.

Try deleting what you’ve entered and copying the code below into your answers.scss file - you should see a corresponding update to the fonts in the frontend once you do so.

  .yxt-Card,
  .HitchhikerFaqAccordion-title, 
  .yxt-Results-title, 
  .yxt-Results-viewAllLink, 
  .yxt-Results-changeFilters, 
  .yxt-Results-filterValue
  {
    font-family: Pangolin, 'Open Sans', sans-serif;
  }

  .yxt-AutoComplete-option--item,
  .yxt-SearchBar-input
  {
    font-family: 'Roboto Mono', 'Open Sans', sans-serif;
  }

Let me know if this resolves. We’ll also look into the validation message issue!

Thanks @afarooque I cannot get this to validate. Have tried copying and pasting your version as well as many attempts myself. Any other suggestions? I feel this is a bug unless I’m missing something obvious.

@afarooque never mind. I was able to do it. I missed an extra space. Thanks! That was my last module!