Blog, Website & Page Publishing

jonathantrimble
Miembro

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

resolver

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 Me gusta
2 Soluciones aceptadas
Niharika
Solución
Miembro | Partner nivel Platinum
Miembro | Partner nivel Platinum

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

resolver

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

Ver la solución en mensaje original publicado

Jnix284
Solución
Miembro estimable | Partner nivel Elite
Miembro estimable | Partner nivel Elite

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

resolver

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

Ver la solución en mensaje original publicado

2 Respuestas 2
Niharika
Solución
Miembro | Partner nivel Platinum
Miembro | Partner nivel Platinum

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

resolver

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
Solución
Miembro estimable | Partner nivel Elite
Miembro estimable | Partner nivel Elite

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

resolver

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