Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1030086

    Hello, I have a problem with my subpages. For the H1 and H2 tags I have entered the Font Oswald in the Child Theme in the Settings (Styles) – which also works on the start page. Unfortunately, this does not work on the subsites. I’ve already tried to change the font-family via css but that does not work. Do you have an idea? Thanks for help

    #1030272

    Hey mariokesseler,

    Your settings seems to be working fine, but this CSS is overriding:

    .text-headline {
        text-transform: uppercase!important;
        font-size: 35px!important;
        line-height: 1.3em!important;
        margin-bottom: 0px;
        letter-spacing: 0.07em!important;
    }

    I’m not sure where that CSS is coming from though, maybe your slider? That would explain why it’s only working on the front page.

    Best regards,
    Rikard

    #1031872

    Hey Rikard, thanks for your quick response but it doesn´t affect the font familiy. I tried everything, but it does not work. I’ve put a filter in the functions.php to my_custom.css and that’s the code of this:

    @font-face {
        font-family: 'oswaldextralight';
        src: url('font/oswald-extralight-webfont.woff2') format('woff2'),
             url('font/oswald-extralight-webfont.woff') format('woff');
        font-weight: normal;
        font-style: normal;
    }
    
    h1 {
    	text-transform: uppercase!important;
    	font-size: 30px;
    	line-height:1.3em!important;
    	margin-bottom: 0px;
    	font-weight:300;
            letter-spacing: -0.02em!important;
            font-family: oswaldextralight!important;
    }

    thx for your help :)

    #1032133

    Hi,

    Thanks for that, though I’m not sure what you mean by a filter? I can only see CSS? The CSS you posted doesn’t seem to be working either since the text you point out is using a basic serif font, not the one specified in your code. Could you make sure that the URL of the font is correct?

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.