Advertisement
fauzanjeg

Hide or Change stripes Date Meta on AMP mode

Oct 31st, 2021
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. /* Hide or Change stripes Date Meta on AMP mode */
  2. function remove_stripes_meta_date_on_amp() {
  3.     ?>
  4.     /* to Hide it */
  5.     .amp-wp-posted-on:before {
  6.         display: none;
  7.     }
  8.     /* to Change it to clock icon */
  9.     .amp-wp-posted-on:before {
  10.         content: '\f017';
  11.         font-family: 'FontAwesome';
  12.     }
  13.     <?php
  14. }
  15. add_action( 'amp_post_template_css', 'remove_stripes_meta_date_on_amp' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement