fauzanjeg

Change Font Family on AMP mode

May 31st, 2021 (edited)
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. /* Change Font Family on AMP mode */
  2. function add_custom_css_for_amp_mode() {
  3.     ?>
  4.     /* Font Familiy in Article */
  5.     body .amp-wp-article,
  6.     body .amp-wp-article p {
  7.         font-family: "Poppins";
  8.     }
  9.     <?php
  10. }
  11. add_action( 'amp_post_template_css', 'add_custom_css_for_amp_mode' );
Add Comment
Please, Sign In to add comment