• Resolved Dalee

    (@dalee)


    Hi,

    Can someone tell me how I can change the font of the articles?

    Thanks a lot

    Denis

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ryan Kienstra

    (@ryankienstra)

    (Response edited)

    Ryan Kienstra

    (@ryankienstra)

    Hi Denis,
    That’s a good question. There isn’t a way to do this with a UI.

    In the upcoming 0.7 release, there will be a better way to enqueue scripts if you use the new “Paired Mode” or “Native AMP.”

    But for now, you can do something like this:

    
    add_action( 'amp_post_template_css', function() {
    	?>
    	article p {
    		font-family: Georgia;
    	}
    	<?php
    } );
    

    You’ll probably have to change the selector, depending on how much of the <article> should have a different font. And feel free to use your own font 🙂

    Let me know how this works.

    Thanks!

    Plugin Author Weston Ruter

    (@westonruter)

    Thread Starter Dalee

    (@dalee)

    Hi,

    Thank you for your quick and competent answer. The snippet and the link helped me a lot. Worked.

    Best wishes

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

The topic ‘AMP Fonts in Article’ is closed to new replies.