-
AuthorPosts
-
April 14, 2017 at 7:00 am #777670
Hi,
I want to use Google Open Sans Font. By default I am only given weights of 300,600. I want to add 400, 700,800
How do I do this?-
This topic was modified 8 years, 7 months ago by
Rob.
April 14, 2017 at 8:06 am #777703Hey Rob,
You can set an element’s font weight to Normal, Bold, or Light under Enfold > Advanced Styling.
You can also try adding something like the code below to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file.
h1 { font-weight: 400; }Please replace
h1with the element you wish to apply the new font weight to, and also replace the400value with what you prefer.Please let us know if that helps you with what you’re trying to do.
Cheers!
SarahApril 14, 2017 at 8:10 am #777705Thanks for the Reply Sarah. I don’t see how I can edit weights. I am doing this for the navigation text.
-
This reply was modified 8 years, 7 months ago by
Rob.
April 14, 2017 at 9:34 am #777734Hi Rob,
I see. In that case, please go to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file, and use CSS code like this:
#top #header .av-main-nav > li > a { font-weight:400;}If that doesn’t work, or you need help with the actual CSS, please give us the link to the website you’re trying to customize.
Best regards,
SarahApril 14, 2017 at 9:37 am #777735That didn’t change anything. I checked the code and noticed it only included 300,600 on the google fonts tag.
-
This reply was modified 8 years, 7 months ago by
Rob.
April 14, 2017 at 10:40 am #777761Hi,
Can you try this code instead:
#top #header .av-main-nav > li > a { font-weight:100 !important;}You may also try the solution in this thread: New custom font. The fourth post discusses font weights.
Best regards,
SarahApril 14, 2017 at 12:36 pm #777788100 worked, but I want the thicker weight of it.
I tried font-weight: bold; and didn’t change anything.-
This reply was modified 8 years, 7 months ago by
Rob.
April 16, 2017 at 3:06 pm #778425The plugin ‘WP Google Fonts’ fixed the issue for me.
April 17, 2017 at 4:02 pm #778786 -
This topic was modified 8 years, 7 months ago by
-
AuthorPosts
- The topic ‘Add font weights to google fonts’ is closed to new replies.
