• Resolved gwdlarry

    (@gwdlarry)


    Hi there,

    the plugin gives the possibility of uploading font files.
    However, when they are to be selected in the ‘CMP Basic Setup’ -> ‘Customize fonts’ panel, they only appear as file names. And they do not work.
    The resulting CSS in the generated HTML looks like:

    <style>@font-face {font-family: "montserrat-v12-latin-regular";
    src: url("https://mydomain.de/wp-content/uploads/montserrat-v12-latin-regular.woff2") format("woff2");}
    </style><style>
    @font-face {font-family: "playfair-display-v21-latin-700";
    src: url("https://mydomain.de/wp-content/uploads/playfair-display-v21-latin-700.woff2") format("woff2");}
    </style>
    
            <style>
                body,input {font-family:'montserrat-v12-latin-regular', 'sans-serif';color:#545454;}
                                .social-list {background-color: rgba(0,0,0,0.4);}
                                a {color:#545454;}
                h1,h2,h3,h4,h5,h6 {font-family:'playfair-display-v21-latin-700', 'sans-serif';}
                body {font-size:17px; letter-spacing: 0px; font-weight:Not Applicable;; }
                h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:1.3529411764706em;letter-spacing: 0px; font-weight:Not Applicable;font-style: normal;; }
                h1 {font-weight:Not Applicable;font-style: normal;;}
            </style>

    Any hint?
    Thanks in advance for your help.
    Best,
    Larry

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ales

    (@alesmal)

    Hello, those styles looks quite alright to me, it should work.

    Is it possible to share your website URL so I can check what might be blocking the fonts to be loaded?

    You can send it to [email protected] if you do not want to share it pubclicly here.

    Cheers Ales

    Thread Starter gwdlarry

    (@gwdlarry)

    Thank you for your reply.

    As I was in a hurry, I eventually hardcoded what I needed directly in the style.css of the “hardwork” theme.

    So I don’t have this issue anymore.

    Thanks.
    Best,
    Larry

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use local fonts instead of Google fonts’ is closed to new replies.