Tagged: x
-
AuthorPosts
-
October 31, 2016 at 1:07 pm #1238219
Loes vParticipantHi x team,
Were are planning a big design change on our site.
Fist this to do is using a custom font.
So I added some code in the style.css of my child theme.
I used this method:
https://community.theme.co/forums/topic/how-do-i-add-my-own-font-and-use-everywhere/As a benchmark I wanted to display the site by this method with the google fonts I used by x.
So I downloaded the ttf on google fonts, converted them in woff, svg and eot.
Uploaded them to a folder on the server.There is a difference in displaing the headers in a “custom headline” with accent.
The font is shifted downward relative to the horizontal line.
See these two pages:
With google font:With custom font:
http://www.loesvanoosten.com/testpage/I know, I’m very picky, I just want to know what differences this method will offer me.
I tried some workarounds of vertical text alignment in the style.css but none was working.Is there a workaround to display the custom headlines centered with the accent?
Thanks for your reply!
KoenOctober 31, 2016 at 1:47 pm #1238259
Nabeel AModeratorHi Koen,
Thanks for writing in! Try adding the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.h-custom-headline.accent span { font-size: 24px !important; letter-spacing: 0.015em !important; line-height: 1.1 !important; }Let us know how this goes!
November 1, 2016 at 7:52 am #1239086
Loes vParticipantThe result is still the same.
Other suggestions???November 1, 2016 at 9:06 am #1239177
Paul RModeratorHi,
You can try adding this in custom css in the customizer
body .h-custom-headline.accent span { padding-bottom: 5px; }Hope that helps.
November 2, 2016 at 3:34 am #1240403
Loes vParticipantYes, this one does the trick.
Tanks for helping me out!Kind regards, Koen
November 2, 2016 at 4:47 am #1240484
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1238219 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
