• Resolved richards1052

    (@richards1052)


    ampwp-4248deca-a621-5dc1-9b53-0ac64f93852f

    The Amp plugin is not displaying my text properly. When it worked, you could see the text clearly in mobile format. Now the text is unreadable it’s so tiny.

    Can you help me figure out what is wrong?

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

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

    (@milindmore22)

    Hello @richards1052

    Thank you for contacting us, it seems you are using the AMP plugin with Reader Mode with the legacy theme. When we checked your site the text seems to be displaying normally on mobile devices on AMP pages.

    You can add a custom CSS to increase the font size using the amp_post_template_css hook.

    example: add the following code in your child theme functions.php or in a custom plugin.

    add_action( 'amp_post_template_css', function ( $amp_template ) {
    	// You CSS goes here only CSS no need of <style> tag.
    	?>
    	.amp-wp-byline amp-img {
    		border-radius: 0; /* we don't want round avatars! */
    	}
    	.my-custom-class {
    		color: blue;
    	}
    	<?php
    } );

    Learn more about customizing Legacy themes using our documentation

    Plugin Support Milind More

    (@milindmore22)

    @richards1052 As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

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

The topic ‘Amp mobile formatting not working’ is closed to new replies.