Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #869784
    fullframenw
    Participant

    Hello, I am looking to use four different fonts on my website for various applications. Two of the fonts, Antonio Light and Baskerville Italic are not offered through the X Theme. The other two, Lato and Open Sans are available.

    For Antonio Light and Baskerville Italic I want to use the two as headers and sub headers. For Open Sans I want to use as body text. Essentially, I want to be able to use the fonts interchangeably.

    Is there a way to do this? Perhaps some custom CSS and then a code to put into my style for each header/element indicating which font?

    Thank you

    #869790
    fullframenw
    Participant
    This reply has been marked as private.
    #869792
    fullframenw
    Participant

    I will also note that I have downloaded both Antonio Light and Baskerville Italic as web fonts and have their files ready for upload to X Theme and/or Cornerstone, if need be.

    #870280
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Ah, what you need to do first is install your theme at your site. There are threads that can guide you the font installlation 🙂

    For examples,

    https://community.theme.co/forums/topic/how-do-i-add-my-own-font-and-use-everywhere/#post-56415
    https://community.theme.co/forums/topic/custom-font-2/

    The let us know when done, we’ll continue the styling for headlines 🙂

    Thanks!

    #873242
    fullframenw
    Participant

    Hi! Wow all of those links were quite helpful. So far I have downloaded a child theme, created a fonts folder in my wp-content folder in file manager, added in the font files and added in the custom css from the link provided (with my updated fotn name and location of font) in the child theme. It didn’t seem to work though. Could I have missed something? But yes, that part is done, would love to continue the styling for headlines.

    #873476
    fullframenw
    Participant
    This reply has been marked as private.
    #873873
    Rue Nel
    Moderator
    This reply has been marked as private.
    #876685
    fullframenw
    Participant

    I will be using both, Antonio Light and Baskerville Italic

    #876688
    fullframenw
    Participant

    I should also mention I have only imported the .ttf files onto my server font folder.

    #876764
    fullframenw
    Participant

    My child theme has baskerville italic.

    #877361
    Jade
    Moderator

    Hi there,

    Kindly provide us with your FTP details in a private response so that we can check this further.

    Thank you.

    #878596
    fullframenw
    Participant
    This reply has been marked as private.
    #879409
    Friech
    Moderator

    Hi There,

    I’ve updated your @font-face declaration and you can use the font-family: 'baskerville-italic'; on your site now. See this page: http://www.fullframenw.com/?page_id=450&preview=true

    The issue is you declared the other font format, even though you only have the .ttf file.

    Hope it helps, Cheers!

    #880279
    fullframenw
    Participant

    Thank you, glad to know it’s working correctly! Now to the real question at hand: Is it possible to use two custom fonts in the same text box through Cornerstone?

    I want to be able to use both fonts interchangeably on my homepage and on other cornerstone pages as well. Mostly as headers.

    #880292
    fullframenw
    Participant

    I’ve pasted in this code into my text box in cornerstone:

    <p style="font-family: 'baskerville-italic', sans-serif !important;">

    It works perfectly!

    When I change the font-family to antonio-light (the other font I put in my file manager, I don’t see it change. Should I add another CSS code identical to the baskerville-italic code into my child theme and custom CSS to have it work properly?

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