Blog, Website & Page Publishing

jonathantrimble
Mitglied

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

lösung

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 Upvotes
2 Akzeptierte Lösungen
Niharika
Lösung
Mitglied | Platinum Partner
Mitglied | Platinum Partner

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

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

Jnix284
Lösung
Koryphäe | Elite Partner
Koryphäe | Elite Partner

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

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
Niharika
Lösung
Mitglied | Platinum Partner
Mitglied | Platinum Partner

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

lösung

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
Lösung
Koryphäe | Elite Partner
Koryphäe | Elite Partner

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

lösung

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