Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1385645
    happydogsnyc
    Participant

    My site is happydogsnyc.com/hd_504

    I’ve added some custom font files in the happydogsnyc.com/hd_504/wp-content/fonts folder.

    In the X Theme “Additional CSS” section, I’ve added:

    @font-face {
    font-family: “Archer”;
    src: url(“wp-content/fonts/Archer-Bold-Pro.ttf”) format(“truetype”);
    }

    h2 {
    font-family: “Archer”;
    }`

    However, my h2 headings still show up with what is set in the Typography section, not my custom font.

    NOTE: If you check a page, e.g. happydogsnyc.com/hd_504/baths, you will see I’m playing around with different heading styles, e.g. h4. The problem is the same, if I use h4 and set h4 to Archer via css (i.e. h4 instead of h2 in the snippet above), I don’t see Archer, I see whatever heading font is set in the Typography section.

    #1385919
    Rad
    Moderator

    Hi there,

    Thanks for writing in. It should be like this

        @font-face {
    font-family: "Archer";
    src: url("http://www.happydogsnyc.com/hd_504/wp-content/fonts/Archer-Bold-Pro.ttf") format("truetype");
    }
    
    h2 {
    font-family: "Archer" !important;
    }

    Thanks!

    #1386227
    happydogsnyc
    Participant

    Thanks, works! You guys have super support, really appreciate it.

    #1386255
    Rupok
    Member

    You are welcome!

    Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!

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