Skip to content

Instantly share code, notes, and snippets.

@kjy112
Created February 24, 2016 23:31
Show Gist options
  • Save kjy112/95963479037e01aa5946 to your computer and use it in GitHub Desktop.
Save kjy112/95963479037e01aa5946 to your computer and use it in GitHub Desktop.
Code for Logo Only
<?php
add_action( 'amp_post_template_css', 'xyz_amp_additional_css_styles' );
function xyz_amp_additional_css_styles( $amp_template ) {
// only CSS here please...
?>
nav.amp-wp-title-bar {
padding: 12px 0;
background: #000;
}
nav.amp-wp-title-bar a {
background-image: url( 'https://example.com/path/to/logo.png' );
background-repeat: no-repeat;
background-size: contain;
display: block;
height: 28px;
width: 94px;
margin: 0 auto;
text-indent: -9999px;
}
<?php
}?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment