Created
February 24, 2016 23:29
-
-
Save kjy112/fb9278133ebe55803c46 to your computer and use it in GitHub Desktop.
Code for Styling AMP Header Bar and Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Custom CSS for AMP | |
*/ | |
add_action( 'amp_post_template_css', 'xyz_amp_my_additional_css_styles' ); | |
function xyz_amp_my_additional_css_styles( $amp_template ) { | |
// only CSS here please... | |
?> | |
nav.amp-wp-title-bar{ | |
background: #f0f0f0 url(/*link to your bg image if applicable*/); | |
} | |
nav.amp-wp-title-bar a{ | |
color: #cc4125; | |
font-weight: bold; | |
font-size: 22px; | |
} | |
.social-sharing a{ | |
padding-right: 10px; | |
} | |
<?php | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment