Advertisement
fauzanjeg

Add CSS for HomePage/FrontPage

Jan 27th, 2021
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.24 KB | None | 0 0
  1. /* Add CSS for HomePage/FrontPage */
  2. function homepage_css() {
  3.     if ( is_front_page() ) {
  4.         ?>
  5.         <style>
  6.             .jeg_meta_date a, .jeg_modified_date a {
  7.                 display: none;
  8.             }
  9.         </style>
  10.         <?php
  11.     }
  12. }
  13.  
  14. add_action( 'wp_head', 'homepage_css' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement