• Resolved Mk

    (@immmukeshpatel)


    How to Incresase text size of content in amp article, Text size of Content in Amp Article is very small, how to crease increase

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello Mukesh,

    You can add the CSS to AMP reader Mode legacy theme using amp_post_template_css action hook.

    Please add the following code into your child themes functions.php or in a custom plugin.

    add_action( 'amp_post_template_css', function ( $amp_template ) {
    	// only CSS here please...
    	?>
    	.amp-wp-article-content {
    		font-size: 2em;
    	}
    	<?php
    } );

    Please refer to our documentation guide in future to understand how you can customize Legacy theme.

    Hope this helps!

    Thread Starter Mk

    (@immmukeshpatel)

    Thank You

    Thread Starter Mk

    (@immmukeshpatel)

    How to use Custom Fonts in Amp Or Poppins Font in amp

    • This reply was modified 3 years ago by Mk.
    Plugin Support Milind More

    (@milindmore22)

    You can use the same code snippet above and add the CSS @import tag for the google fonts.

    Plugin Support Milind More

    (@milindmore22)

    here is example in case you need it

    add_action( 'amp_post_template_css', function ( $amp_template ) {
    	// only CSS here please...
    	?>
    	@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
      	body {
        	font-family: 'Poppins', sans-serif;
      	}
    	<?php
    } );
    Thread Starter Mk

    (@immmukeshpatel)

    Thank You So Much Sir ??????

    Plugin Support Milind More

    (@milindmore22)

    @immmukeshpatel
    Glad our suggestion is helpful, I’ll mark this as resolved Open a new support topic if you face further issues, also feel free to leave a plugin review, we would love to hear your feedback.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to Incresase text size of content in amp article’ is closed to new replies.