Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1238219
    Loes v
    Participant

    Hi 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:

    home

    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!
    Koen

    #1238259
    Nabeel A
    Moderator

    Hi 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!

    #1239086
    Loes v
    Participant

    The result is still the same.
    Other suggestions???

    #1239177
    Paul R
    Moderator

    Hi,

    You can try adding this in custom css in the customizer

    
    body .h-custom-headline.accent span {
        padding-bottom: 5px;
    }
    

    Hope that helps.

    #1240403
    Loes v
    Participant

    Yes, this one does the trick.
    Tanks for helping me out!

    Kind regards, Koen

    #1240484
    Paul R
    Moderator

    You’re welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-1238219 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>