Advertisement
fauzanjeg

Change Style for Logo in AMP mode (Text Logo)

Nov 1st, 2021
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. /* Change Style for Logo in AMP mode (Text Logo) */
  2. function change_style_for_text_logo_in_amp() {
  3.     ?>
  4.     .amp-wp-header .jeg_mobile_logo {
  5.         background-image: unset;
  6.         font-size: 24px;
  7.         color: grey;
  8.         margin-top: 14px;
  9.     }
  10.     @media
  11.     only screen and (-webkit-min-device-pixel-ratio: 2),
  12.     only screen and (     -o-min-device-pixel-ratio: 2/1),
  13.     only screen and (        min-device-pixel-ratio: 2),
  14.     only screen and (                min-resolution: 192dpi),
  15.     only screen and (                min-resolution: 2dppx) {
  16.         .amp-wp-header .jeg_mobile_logo {
  17.             background-image: unset;
  18.         }
  19.     }
  20.     <?php
  21. }
  22. add_action( 'amp_post_template_css', 'change_style_for_text_logo_in_amp' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement