Blog, Website & Page Publishing

jonathantrimble
Membre

Child theme, CSS, for custom font - a puzzle that needs help!

Résolue

Hey, grateful to be amongst you. 

 

I downloaded and installed a theme called Stage, which is free in the Hubspot marketplace. 

 

I then created a Child of that theme, which I named myself. 

In the child.css stylesheet, I then added some code to add custom fonts to h1-5. However, the fonts are not rendering in the Webpages editor, nor in preview, nor when published. It's like the code is not there.

 

Here's my code!Here's my code!

 

What am I missing? 

 

Would love your help and thank you. 

0 Votes
2 Solutions acceptées
Niharika
Solution
Membre | Partenaire solutions Platinum
Membre | Partenaire solutions Platinum

Child theme, CSS, for custom font - a puzzle that needs help!

Résolue

Hi @jonathantrimble 

 

Trust you are doing great.

 

I have checked the above quetion.

 

Please remove the <style> tag from CSS file immediate above the h1. As in .CSS file <style> tag do not supported.

 

According to my understanding, after removing the <style> tag your font-family would work.

 

Hope that would helpful.

 

Thanks

Niharika Goyal

Voir la solution dans l'envoi d'origine

Jnix284
Solution
Membre irremplaçable | Partenaire solutions Elite
Membre irremplaçable | Partenaire solutions Elite

Child theme, CSS, for custom font - a puzzle that needs help!

Résolue

Hi @jonathantrimble  as @Niharika  the style tag at the beginning and end of your declarations needs to be removed.

 

I also noticed you have a typo in your fallback font (should be helvetica) so you might want to double check for all of the headings.

 

 


If my reply answered your question please mark it as a solution to make it easier for others to find.



Jennifer Nixon - Delivery Lead at Aptitude 8

connect with Jen on Linkedin

Voir la solution dans l'envoi d'origine

2 Réponses
Niharika
Solution
Membre | Partenaire solutions Platinum
Membre | Partenaire solutions Platinum

Child theme, CSS, for custom font - a puzzle that needs help!

Résolue

Hi @jonathantrimble 

 

Trust you are doing great.

 

I have checked the above quetion.

 

Please remove the <style> tag from CSS file immediate above the h1. As in .CSS file <style> tag do not supported.

 

According to my understanding, after removing the <style> tag your font-family would work.

 

Hope that would helpful.

 

Thanks

Niharika Goyal

Jnix284
Solution
Membre irremplaçable | Partenaire solutions Elite
Membre irremplaçable | Partenaire solutions Elite

Child theme, CSS, for custom font - a puzzle that needs help!

Résolue

Hi @jonathantrimble  as @Niharika  the style tag at the beginning and end of your declarations needs to be removed.

 

I also noticed you have a typo in your fallback font (should be helvetica) so you might want to double check for all of the headings.

 

 


If my reply answered your question please mark it as a solution to make it easier for others to find.



Jennifer Nixon - Delivery Lead at Aptitude 8

connect with Jen on Linkedin