fauzanjeg

Remove Post Meta on Homepage

Jan 13th, 2021 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. /* Remove Post Meta on Homepage */
  2. function remove_post_meta_on_homepage() {
  3.     if ( is_front_page() ) {
  4.         ?>
  5.         <style>
  6.             .jeg_meta_author, .jeg_meta_date, .jeg_post_meta {
  7.                 display: none !important;
  8.             }
  9.         </style>
  10.         <?php
  11.     }
  12. }
  13.  
  14. add_action( 'wp_head', 'remove_post_meta_on_homepage' );
Add Comment
Please, Sign In to add comment