Skip to content

Instantly share code, notes, and snippets.

@kjy112
Created February 24, 2016 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjy112/fb9278133ebe55803c46 to your computer and use it in GitHub Desktop.
Save kjy112/fb9278133ebe55803c46 to your computer and use it in GitHub Desktop.
Code for Styling AMP Header Bar and Text
<?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