fauzanjeg

Change header color on AMP mode

Apr 18th, 2021 (edited)
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. /* Change header color on AMP mode */
  2. function add_custom_css_for_amp_mode() {
  3.     ?>
  4.     /* Header Color */
  5.     .amp-wp-header {
  6.         background: linear-gradient(90deg, #3070b5 0%, #006838 100%);
  7.     }
  8.  
  9.     /* Header Logo */
  10.     .amp-wp-header .jeg_mobile_logo {
  11.         background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/368px-Google_2015_logo.svg.png);
  12.     }
  13.     <?php
  14. }
  15. add_action( 'amp_post_template_css', 'add_custom_css_for_amp_mode' );
Add Comment
Please, Sign In to add comment