• Resolved sylvainbotter

    (@sylvainbotter)


    Hello, I read your tutorial and implemented the code to change the font:

    But not working (i cleared the cache also…)

    Robot is my main font on my Website.

    I am 100% sure that the class is “amp-wp-title”

    body {
    font-family: ‘Roboto’, Arial, Helvetica, sans-serif;
    }

    h1 .amp-wp-title {
    font-family: ‘Roboto’, Arial, Helvetica, sans-serif;
    }

    thanks in advance!!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sylvainbotter

    (@sylvainbotter)

    I add also in the header

    <style>
    @import url(‘https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700&#8217;);
    </style>

    but not working?

    frenchomatic

    (@frenchomatic)

    Looks like things are a bit messed up

    h1.amp title is font-family: ‘Roboto Slab’,serif;

    and you have this too

    .amp-wp-article-content is font-family: ‘PT Serif’,serif;

    +
    +
    don’t use @import – link to the font that you want to use in the <head>

    Thread Starter sylvainbotter

    (@sylvainbotter)

    Thanks for clarifying,

    Where does .amp-wp-article-content come from? Any ideas? I never wrote a code with this class!

    Have a nice day!

    frenchomatic

    (@frenchomatic)

    Style.php is where the theme css is generated. However to override (change it) or add to it you can use the custom css editor in the plugin’s admin panel. That way you won’t lose any changes you have made when the plugin is updated.

    What I do is use firebug or another inspector to look at the css selector I wish to change, then add that css selctor into the custom css editor with the style I want.

    Hope that makes sense.

    Thread Starter sylvainbotter

    (@sylvainbotter)

    Amazing, thanks so much! I could find the style.php and customize what I wanted. SOLVED 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Cannot change font’ is closed to new replies.