Suggestion on integrating Hoefler&Co's cloud.typography

Hey folks,

I’ve read the previous post on H&C—and understand that direct integration H&C integration is potentially on the map, but not yet.

I’m wondering how you’d recommend integrating the font today. Should I just override all the element’s CSS? i.e., h1, h2, …, p, a, etc. { font-family: H&C_font !important; }

Is there a way to unset the element’s CSS? just set everything to ‘inherit’? Just trying to figure out a way to avoid that !important, if possible.

Thanks for the insight!

Luke

This was an easy fix, actually:

Turn off Font Manager. This will remove font-family from the element in the compiler, setting everything to ‘inherit’ (perfect). Then we specify the font we want with:

body, input, button, select, textarea, h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
font-family: XYZ;
}

Hello Luke,

Thanks for writing to us.

Yes, you can override the styling of the body, headings tag and input by the custom CSS but you need to enqueue the font for that you need font manager. In if you want to enqueue the custom fonts or you have to enqueue it by using custom PHP code through the child theme.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.